Skip to content
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

convert-headers-to-map should throw UnsupportedOperationException, not a String #40

Closed
thoughtmanifest opened this issue Sep 1, 2012 · 3 comments
Assignees

Comments

@thoughtmanifest
Copy link
Contributor

https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client/headers.clj#L48
https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client/headers.clj#L50
https://github.com/neotyk/http.async.client/blob/master/src/clj/http/async/client/headers.clj#L51

I believe these should all throw (UnsupportedOperationException. "Headers are read only.") not just the string.

Alternatively, I believe if you don't provide a method fn, the UnsupportedOperationExceptions are thrown automatically by proxy, though I don't know that for sure being new to proxy and its use.

@ghost ghost assigned neotyk Sep 2, 2012
@neotyk
Copy link
Collaborator

neotyk commented Sep 2, 2012

Hi David,

I see you've made those changes already [1], [2].
Would you mind providing a patch and some tests for new behavior?

Thanks for feedback!

[1] https://github.com/g1nn13/http.async.client/commit/9673e01f4088ac9df4e8ed08496d209e279962fb
[2] https://github.com/g1nn13/http.async.client/commit/9dd028b75fe35edf4039e8474e21c2e93359fd9e

@neotyk
Copy link
Collaborator

neotyk commented Sep 6, 2012

This is taken care of in #41.

@neotyk neotyk closed this as completed Sep 6, 2012
@thoughtmanifest
Copy link
Contributor Author

Awesome, thanks!

On Thursday, September 6, 2012 at 11:17 AM, Hubert Iwaniuk wrote:

This is taken care of in #41 (#41).


Reply to this email directly or view it on GitHub (#40 (comment)).

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

No branches or pull requests

2 participants