Closed sonncui closed 6 years ago
I think, in general, header values are meant to be supplied as strings (they will certainly be serialized as such) so one option would be:
headers = { :persistent => 'true' }
Another possibility is to explicitly convert header values to strings by use of #to_s
. I'm actually disappointed with myself for not having done this already 😞
Finally, your PR may solve the issue as well, I'll take a look at it now!
Thank you for your contributions regarding this issue as well as brining the CI config and development dependencies up to date. I have merged everything in the master branch as well as published a new patch version of onstomp (1.0.10) with the changes.
We create a client:
Set
Call
Then we get an error below:
And after our analyze, the code in the repo: https://github.com/iande/onstomp/blob/master/lib/onstomp/connections/stomp_1.rb#L57 which not handle the value without a method #empty? (eg: we give the header {:persistent=>true})
So how do we handle this kind of case?