mirror of https://github.com/adamdruppe/arsd.git
actual fix
This commit is contained in:
parent
b6fffd1a82
commit
ef0b213aaa
7
http2.d
7
http2.d
|
@ -1805,7 +1805,7 @@ class HttpRequest {
|
||||||
}
|
}
|
||||||
|
|
||||||
size_t position = 0;
|
size_t position = 0;
|
||||||
for(position = 0; position < dataIn.length; position++) {
|
for(position = 0; position < data.length; position++) {
|
||||||
if(headerReadingState.readingLineContinuation) {
|
if(headerReadingState.readingLineContinuation) {
|
||||||
if(data[position] == ' ' || data[position] == '\t')
|
if(data[position] == ' ' || data[position] == '\t')
|
||||||
continue;
|
continue;
|
||||||
|
@ -1822,8 +1822,9 @@ class HttpRequest {
|
||||||
// HTTP/1.1 100 Continue
|
// HTTP/1.1 100 Continue
|
||||||
// here we just discard the continue message and carry on; it is just informational anyway
|
// here we just discard the continue message and carry on; it is just informational anyway
|
||||||
// it arguably should be smarter though
|
// it arguably should be smarter though
|
||||||
responseData.headers[0] = null;
|
responseData.headers = null;
|
||||||
position++;
|
headerReadingState.atStartOfLine = true;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
if(this.requestParameters.method == HttpVerb.HEAD)
|
if(this.requestParameters.method == HttpVerb.HEAD)
|
||||||
|
|
Loading…
Reference in New Issue