Преглед изворни кода

Send 303 not 307

tags/v1.0.0
Chris Smith пре 5 година
родитељ
комит
e80faf1e39
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1
    1
      main.go

+ 1
- 1
main.go Прегледај датотеку

@@ -47,7 +47,7 @@ func handleForm(rw http.ResponseWriter, req *http.Request) {
47 47
 	} else {
48 48
 		rw.Header().Add("Location", "failure")
49 49
 	}
50
-	rw.WriteHeader(http.StatusTemporaryRedirect)
50
+	rw.WriteHeader(http.StatusSeeOther)
51 51
 }
52 52
 
53 53
 func showForm(rw http.ResponseWriter, req *http.Request) {

Loading…
Откажи
Сачувај