Closed albttx closed 9 months ago
Currently, when there is 2 headers having the same name on a RewriteValueRule, the use of Header.Set will erase the previous one.
RewriteValueRule
Header.Set
eg:
http whoami.localhost 'set-cookie: test_1=42' 'set-cookie: test_2=43' HTTP/1.1 200 OK Content-Length: 430 Content-Type: text/plain; charset=utf-8 Date: Tue, 20 Jun 2023 10:33:05 GMT Name: whoami Hostname: f48f5d1ec863 IP: 127.0.0.1 IP: 172.20.0.3 RemoteAddr: 172.20.0.2:44670 GET / HTTP/1.1 Host: whoami.localhost User-Agent: HTTPie/3.2.1 Accept: */* Accept-Encoding: gzip, deflate Set-Cookie: test_2=43; Domain=.example.com [...]
Currently, when there is 2 headers having the same name on a
RewriteValueRule
, the use ofHeader.Set
will erase the previous one.eg: