mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-28 05:05:16 +01:00
Fixed stupid mistake with body of http requests.
This commit is contained in:
parent
67baf5100c
commit
d3cf795ebb
@ -162,10 +162,6 @@ 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 {
|
||||||
@ -181,6 +177,10 @@ public class HttpServerConnection extends Thread {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (bound > 0) {
|
||||||
|
boundBody.skip(bound);
|
||||||
|
}
|
||||||
|
|
||||||
String connection = response.fields.get("Connection");
|
String connection = response.fields.get("Connection");
|
||||||
String contentLength = response.fields.get("Content-Length");
|
String contentLength = response.fields.get("Content-Length");
|
||||||
if (contentLength == null && connection == null) {
|
if (contentLength == null && connection == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user