Fixed stupid mistake with body of http requests.
This commit is contained in:
parent
67baf5100c
commit
d3cf795ebb
1 changed files with 4 additions and 4 deletions
|
|
@ -161,10 +161,6 @@ public class HttpServerConnection extends Thread {
|
|||
socket.close();
|
||||
return;
|
||||
}
|
||||
|
||||
if (bound > 0) {
|
||||
boundBody.skip(bound);
|
||||
}
|
||||
|
||||
HttpResponse response = new HttpResponse(this, out);
|
||||
|
||||
|
|
@ -181,6 +177,10 @@ public class HttpServerConnection extends Thread {
|
|||
return;
|
||||
}
|
||||
|
||||
if (bound > 0) {
|
||||
boundBody.skip(bound);
|
||||
}
|
||||
|
||||
String connection = response.fields.get("Connection");
|
||||
String contentLength = response.fields.get("Content-Length");
|
||||
if (contentLength == null && connection == null) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue