Bläddra i källkod

Send 303 not 307

tags/v1.0.0
Chris Smith 5 år sedan
förälder
incheckning
e80faf1e39
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      main.go

+ 1
- 1
main.go Visa fil

@@ -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) {

Laddar…
Avbryt
Spara