actual fix

This commit is contained in:
Adam D. Ruppe 2021-09-28 16:00:41 -04:00
parent b6fffd1a82
commit ef0b213aaa
1 changed files with 4 additions and 3 deletions

View File

@ -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)