Commit Graph

5 Commits (3708ca8e2849ca7e36e6bd15ec6935a2a2d81e55)

Author SHA1 Message Date
KN4CK3R 3f280f89e7
Update HTTP status codes to modern codes ()
* 2xx/3xx/4xx/5xx -> http.Status...
* http.StatusFound -> http.StatusTemporaryRedirect
* http.StatusMovedPermanently -> http.StatusPermanentRedirect
zeripath 62dcf1a6fb
Add NotFound handler ()
PR  means that urls with terminal '/' are no longer immediately mapped
to the url without a terminal slash. However, it has revealed that the NotFound handler
appears to have been lost.

This PR adds back in a NotFound handler that simply redirects to a path without the
terminal slash or runs the NotFound handler.

Fix 

Signed-off-by: Andrew Thornton <art27@cantab.net>
John Olheiser 0e2217bd2d
Logout POST action ()
* Change logout to POST

* Update for redirect

Signed-off-by: jolheiser <john.olheiser@gmail.com>
zeripath 055f6d2296 Fix "data race" in testlogger ()
* Fix data race in testlogger

* Update git_helper_for_declarative_test.go
Ethan Koenig 5abd1d2a68 Add integration test for logging out ()