-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add set_resp_headers_list #1634
base: master
Are you sure you want to change the base?
Conversation
d45c76e
to
29aedff
Compare
@@ -366,6 +367,30 @@ uri2_test() -> | |||
<<"http://localhost/path?dummy=2785">> = iolist_to_binary(uri(Req, #{port => 80})), | |||
<<"https://localhost/path?dummy=2785">> = iolist_to_binary(uri(Req, #{scheme => "https", port => 443})), | |||
ok. | |||
|
|||
resp_headers_test() -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If not needed we can remove this unit test. I was using it to validate the function behavior.
set_resp_headers_list([], Map, Req) -> | ||
set_resp_headers(Map, Req); | ||
|
||
set_resp_headers_list([{<<"set-cookie">>, _} | Headers], Map, Req) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@essen I wonder if to have some consistency with the set_resp_header
we should instead throw an error. What do you say?
Integration tests will be added soon. I would like to get your thoughts first, @essen |
This PR addresses #1295