From 54802af1f97e7c19abfebcf41e5b99d4e102689c Mon Sep 17 00:00:00 2001 From: sigonasr2 Date: Sat, 20 Aug 2022 12:51:56 -0500 Subject: [PATCH] Extra boundary data?? Co-authored-by: sigonasr2 --- sigServer.java | 2 +- test.html | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 test.html diff --git a/sigServer.java b/sigServer.java index d62e09d..1b50ae7 100644 --- a/sigServer.java +++ b/sigServer.java @@ -157,7 +157,7 @@ public class sigServer { } if (line.contains("Content-Type:")) { if (line.contains("Content-Type: multipart/form-data; boundary=")) { - boundary="--"+line.substring("Content-Type: multipart/form-data; boundary=".length()); + boundary=line.substring("Content-Type: multipart/form-data; boundary=".length()); } else if (line.contains("application/json")){ isApplication=true; diff --git a/test.html b/test.html new file mode 100644 index 0000000..bb04c7c --- /dev/null +++ b/test.html @@ -0,0 +1,7 @@ +
+

+

+

+

+

+ \ No newline at end of file