Skip to content
This repository has been archived by the owner on Oct 25, 2022. It is now read-only.

Multiple response headers not supported #29

Open
vankeisb opened this issue Jul 23, 2014 · 0 comments · May be fixed by #30
Open

Multiple response headers not supported #29

vankeisb opened this issue Jul 23, 2014 · 0 comments · May be fixed by #30

Comments

@vankeisb
Copy link

The current BBHTTPResponse contract doesn't allow for multiple response headers. The property headers references a dictionary of NSString,NSString, so you can't set the same header several times.

For example, Set-Cookie might be present several times in the same response.

I'm used to Java, and there is this method in HttpServletResponse (the Java equivalent of BBHTTPResponse) :
http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html#getHeaders(java.lang.String)

I have patched the lib in order to support that, and tried to keep backward compat.

I'll send a pull request ASAP.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant