ref: 02612ca30c54df798f7c8cab214ba8a8323656dc
parent: 4fe69df34fd70c42b380bcd50b0cd425c60122d0
author: grobe0ba <[email protected]>
date: Sat Aug 6 01:09:33 EDT 2022
Send 303 See Other for redirected error pages. Previous behaviour used 301 Moved Permananetly, which isn't correct for this use case.
--- a/tcp80.c
+++ b/tcp80.c
@@ -474,7 +474,7 @@
for(i = 0; i < nelem(redir_errno); i++){
if(status == redir_errno[i]){
- getresponse(statbuf, 32, 301);
+ getresponse(statbuf, 32, 303);
respond(statbuf);
headers(buf, d);