mirror of https://github.com/adamdruppe/arsd.git
buggy servers
This commit is contained in:
parent
04afca2079
commit
fd749579ee
3
http2.d
3
http2.d
|
@ -1721,6 +1721,7 @@ class HttpRequest {
|
||||||
and btw it should prolly just have evnet source as a pre-packaged thing.
|
and btw it should prolly just have evnet source as a pre-packaged thing.
|
||||||
+/
|
+/
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
debug(arsd_http2_verbose) { import std.stdio; writeln(e); }
|
||||||
request.state = HttpRequest.State.aborted;
|
request.state = HttpRequest.State.aborted;
|
||||||
request.responseData.code = 4;
|
request.responseData.code = 4;
|
||||||
request.responseData.codeText = e.msg;
|
request.responseData.codeText = e.msg;
|
||||||
|
@ -1861,7 +1862,7 @@ class HttpRequest {
|
||||||
break;
|
break;
|
||||||
case "Content-Length":
|
case "Content-Length":
|
||||||
case "content-length":
|
case "content-length":
|
||||||
bodyReadingState.contentLengthRemaining = to!int(value);
|
bodyReadingState.contentLengthRemaining = to!int(value.strip);
|
||||||
break;
|
break;
|
||||||
case "Transfer-Encoding":
|
case "Transfer-Encoding":
|
||||||
case "transfer-encoding":
|
case "transfer-encoding":
|
||||||
|
|
Loading…
Reference in New Issue