Fixed the status issue at error handler.
Showing
1 changed file
with
1 additions
and
1 deletions
| ... | @@ -328,7 +328,7 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin | ... | @@ -328,7 +328,7 @@ func Exception(errcode string, w http.ResponseWriter, r *http.Request, msg strin |
| 328 | if err != nil { | 328 | if err != nil { |
| 329 | isint = 500 | 329 | isint = 500 |
| 330 | } | 330 | } |
| 331 | if isint == 400 { | 331 | if isint == 404 { |
| 332 | msg = "404 page not found" | 332 | msg = "404 page not found" |
| 333 | } | 333 | } |
| 334 | w.Header().Set("Content-Type", "text/plain; charset=utf-8") | 334 | w.Header().Set("Content-Type", "text/plain; charset=utf-8") | ... | ... |
-
Please register or sign in to post a comment