We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d5c1e1 commit 17ee99aCopy full SHA for 17ee99a
prefix_cookie_path.go
@@ -65,7 +65,7 @@ func (r *responseWriter) WriteHeader(statusCode int) {
65
// Delete set-cookie headers
66
r.writer.Header().Del(setCookieHeader)
67
68
- // Add new cookie with modifies path
+ // Add new cookie with modified path
69
for _, cookie := range cookies {
70
if cookie.Path == "/" {
71
// prevent trailing /
@@ -75,4 +75,6 @@ func (r *responseWriter) WriteHeader(statusCode int) {
75
}
76
http.SetCookie(r, cookie)
77
78
+
79
+ r.writer.WriteHeader(statusCode)
80
0 commit comments