Negroni-Example icon indicating copy to clipboard operation
Negroni-Example copied to clipboard

HTTP Status Code 301

Open freeman-g opened this issue 9 years ago • 0 comments

@adamar I followed your great example, thanks it was a big help.

FYI - I noticed one issue with using HTTP Status Code 301. In certain cases my browser would no longer hit the originally requested URL, I assume due to the code 301, "Moved Permanently".

So I started using 302 instead, like this:

http.Redirect(w, req, "/login", 302)

Thanks again.

freeman-g avatar Mar 10 '16 00:03 freeman-g