Chris Smith 5 лет назад
Родитель
Сommit
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) {

Загрузка…
Отмена
Сохранить