File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ experimental:
13
13
plugins :
14
14
cookiePathPrefix :
15
15
modulename : " github.com/SchmitzDan/traefik-plugin-cookie-path-prefix"
16
- version : " v0.0.1 "
16
+ version : " v0.0.3 " # replace with newest version
17
17
` ` `
18
18
19
19
### Dynamic
Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ func (r *responseWriter) WriteHeader(statusCode int) {
65
65
// Delete set-cookie headers
66
66
r .writer .Header ().Del (setCookieHeader )
67
67
68
- // Add new cookie with modifies path
68
+ // Add new cookie with modified path
69
69
for _ , cookie := range cookies {
70
70
if cookie .Path == "/" {
71
71
// prevent trailing /
@@ -75,4 +75,6 @@ func (r *responseWriter) WriteHeader(statusCode int) {
75
75
}
76
76
http .SetCookie (r , cookie )
77
77
}
78
+
79
+ r .writer .WriteHeader (statusCode )
78
80
}
You can’t perform that action at this time.
0 commit comments