ref: 8f1eb1ac77640d9cd189c49fe48af8cde65eceb1
parent: 3b376b43af24f8013d330eb2eb9c3b78849bb7c3
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Jun 24 17:52:17 EDT 2018
webfs: don't handle unknown status codes as continuations, reset status when handling continuation to avoid infinite loop
--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -795,12 +795,16 @@
i -= (i % 100);
goto Status;
}
+ goto Error;
case 100: /* Continue */
case 101: /* Switching Protocols */
+ case 102: /* Processing */
+ case 103: /* Early Hints */
while(k = rhdr){
rhdr = k->next;
free(k);
}
+ strcpy(status, "0 No status");
goto Cont;
case 304: /* Not Modified */
nobody = 1;