Negroni-Example
Negroni-Example copied to clipboard
HTTP Status Code 301
@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.