mirror of https://github.com/adamdruppe/arsd.git
deal with header state in correct order so packet/buffer boundaries dont break
This commit is contained in:
parent
a7209664e7
commit
495e664ba3
4
http2.d
4
http2.d
|
@ -1950,13 +1950,13 @@ class HttpRequest {
|
||||||
case 5: // reading footers
|
case 5: // reading footers
|
||||||
//goto done; // FIXME
|
//goto done; // FIXME
|
||||||
|
|
||||||
bodyReadingState.chunkedState = 0;
|
|
||||||
|
|
||||||
while(data[a] != 10) {
|
while(data[a] != 10) {
|
||||||
a++;
|
a++;
|
||||||
if(a == data.length)
|
if(a == data.length)
|
||||||
return stillAlive; // in the footer state we're just discarding everything until we're done so this should be ok
|
return stillAlive; // in the footer state we're just discarding everything until we're done so this should be ok
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bodyReadingState.chunkedState = 0;
|
||||||
data = data[a + 1 .. $];
|
data = data[a + 1 .. $];
|
||||||
|
|
||||||
if(bodyReadingState.isGzipped || bodyReadingState.isDeflated) {
|
if(bodyReadingState.isGzipped || bodyReadingState.isDeflated) {
|
||||||
|
|
Loading…
Reference in New Issue