You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a HTTPResponse contains multiple headers, it is not possible to write a response filter that re-writes those headers, as HTTPResponse.header(_ named: HTTPResponseHeader.Name) -> String? only exposes the first instance of the header.
This is a problem for example when one wants to re-write cookies in a response filter, as there could be multiple Set-Cookie headers in the response.
Likewise, it is not possible to delete a header in a response filter.
The text was updated successfully, but these errors were encountered:
When a HTTPResponse contains multiple headers, it is not possible to write a response filter that re-writes those headers, as
HTTPResponse.header(_ named: HTTPResponseHeader.Name) -> String?
only exposes the first instance of the header.This is a problem for example when one wants to re-write cookies in a response filter, as there could be multiple
Set-Cookie
headers in the response.Likewise, it is not possible to delete a header in a response filter.
The text was updated successfully, but these errors were encountered: