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

Fix Signed 8-bit headers being treated as unsigned #26

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

alex-goodisman
Copy link
Contributor

Currently the byte tag 'b' maps to the Go type byte which is an alias for uint8. This replaces the 'b' mapping with a 'B' mapping, the type for unsigned 8-bit values. A new mapping is added for 'b' that maps to go the Go type int8.

Fixes streadway/amqp#391

@michaelklishin
Copy link
Member

Note: this is consistent with the RabbitMQ's Errata and historically adopted type prefixes.

Copy link
Member

@michaelklishin michaelklishin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should ship this with a minor version bump as it is a tiny and subtle, yet breaking change for interop with older versions of this client.

@michaelklishin michaelklishin merged commit 6d52470 into rabbitmq:main Nov 23, 2021
@lukebakken lukebakken added this to the 1.3.0 milestone Jan 4, 2022
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

Successfully merging this pull request may close these issues.

Go → rabbitmq type mappings
3 participants