amq-protocol icon indicating copy to clipboard operation
amq-protocol copied to clipboard

Allow frozen strings in message bodies

Open djrodgerspryor opened this issue 1 year ago • 0 comments

Previously, this didn't work because force_encoding would always be called on the string, which raises an error on frozen strings, even if the forced encoding is the same as the existing encoding.

Now, the encoding is only changed if the given encoding is wrong (non-binary). This means that correctly encoded frozen strings won't be modified.

djrodgerspryor avatar Dec 17 '22 01:12 djrodgerspryor