Make sure request-body is skipped if not read.
This commit is contained in:
parent
a17eb9859a
commit
a73795270d
1 changed files with 4 additions and 1 deletions
|
|
@ -1,6 +1,5 @@
|
||||||
package org.dynmap.web;
|
package org.dynmap.web;
|
||||||
|
|
||||||
import java.io.BufferedOutputStream;
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.OutputStream;
|
import java.io.OutputStream;
|
||||||
|
|
@ -163,6 +162,10 @@ public class HttpServerConnection extends Thread {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bound > 0) {
|
||||||
|
boundBody.skip(bound);
|
||||||
|
}
|
||||||
|
|
||||||
HttpResponse response = new HttpResponse(this, out);
|
HttpResponse response = new HttpResponse(this, out);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue