Extra boundary data??

Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
main
sigonasr2 2 years ago
parent 3c307d534a
commit 54802af1f9
  1. 2
      sigServer.java
  2. 7
      test.html

@ -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;

@ -0,0 +1,7 @@
<form action="http://192.168.1.85:8080" method="post" enctype="multipart/form-data">
<p><input type="text" name="text" value="text default">
<p><input type="file" name="file1">
<p><input type="file" name="file2">
<p><button type="submit">Submit</button>
</form>
Loading…
Cancel
Save