shithub: riscv

Download patch

ref: 9cddb6ed33051b8d19753e348a2eed3296622397
parent: 63f93b3b0dbf496beeb97dd7c97693d351da3f8f
author: cinap_lenrek <cinap_lenrek@centraldogma>
date: Mon Sep 5 00:25:58 EDT 2011

fix POST/303 redirection loop

--- a/sys/src/cmd/webfs/http.c
+++ b/sys/src/cmd/webfs/http.c
@@ -370,9 +370,10 @@
 		werrstr("Partial Content (206)");
 		goto Error;
 
+	case 303:	/* See Other */
+		c->havepostbody = 0;
 	case 301:	/* Moved Permanently */
 	case 302:	/* Moved Temporarily */
-	case 303:	/* See Other */
 	case 307: /* Temporary Redirect  */
 		redirect = 1;
 		break;