-
Notifications
You must be signed in to change notification settings - Fork 135
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
Updated the headers map in WebRequest and WebResponse to accept multiple headers with the same name #1150
Conversation
…t the whole vector
So as a little personal recap:
if that's all then this lgtm, but maybe we could change |
yes
yes, it returns the first one, I'm not sure whether it should be this or the last one, because with the previous version of the map technically the last one would be returned as the previous ones were overwritten, I'd say that it probably doesn't matter for all mods written until this point because nobody yet complained that they don't get the correct one (I think)
if the vec is empty it'll return As for the name I didn't really know what to call it, I'd propose maybe changing it to |
I renamed it to |
🎉 |
Because there can be multiple headers with the same name, for example Set-Cookie (which was the main motivation for this change)
Also it's probably terrible idk (although the game didn't explode when I tried to use it and it actually worked)