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

Stomp::Client modifies given headers hash #125

Closed
mikola-spb opened this issue Jul 11, 2016 · 4 comments
Closed

Stomp::Client modifies given headers hash #125

mikola-spb opened this issue Jul 11, 2016 · 4 comments

Comments

@mikola-spb
Copy link

I've realised that Client modifies given headers hash, which I think is misleading. Usually I don't expect that a method modifies parameters, until it's clear from its name (like "merge!" or "check_and_add_something"). Is it by purpose? I'm fine to submit a PR to change that.

@gmallard
Copy link

Sure, a PR would be fine.

I am thinking a short example of that should be possible. I would like
to see one if you can supply it.

There is no intent to modify headers. But there are really no tests for
it either.

On 07/11/2016 12:47 PM, Nikolay Khasanov wrote:

I've realised that Client modifies given headers hash, which I think
is misleading. Usually I don't expect that a method modifies
parameters, until it's clear from its name (like "merge!" or
"check_and_add_something"). Is it by purpose? I'm fine to submit a PR
to change that.


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#125, or mute the thread
https://github.com/notifications/unsubscribe/AAAbv5yAvAGSzmqJHmMbQc47PPmOLFsfks5qUnOOgaJpZM4JJjyC.

@gmallard
Copy link

Please close this if you are satisfied with the result.

This fix is on 'dev', and will be in the next release.

@mikola-spb
Copy link
Author

Thank you! There is one more place I found, but it's connected with listener and I'm not sure it has to be changed. Anyway it another story.

@gmallard
Copy link

Thanks for closing this.

Since you are using Artemis I thought you might be interested in working on this:

#128

Let me know please. I understand if you are busy.

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