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

Fixes minor issue where attachment Content-Type is being overwritten in wrapper (and dirty fix for binary attachments on python2) #321

Merged
merged 3 commits into from
Feb 11, 2023

Conversation

bpotard
Copy link
Contributor

@bpotard bpotard commented Nov 16, 2021

When attaching files, xero may expect to receive the Content-Type of the file being attached. However the wrapper always overwrites it to "application/xml".

In practice, this has not real impact at the moment, as xero ignores the user provided mime type and the actual file content, and "guess" the mime type from the file name only.

@bpotard bpotard changed the title Fixes minor issue where attachment Content-Type is being overwritten in wrapper Fixes minor issue where attachment Content-Type is being overwritten in wrapper (and dirty fix for binary attachments on python2) Nov 17, 2021
Copy link
Owner

@freakboy3742 freakboy3742 left a comment

Choose a reason for hiding this comment

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

Apologies for the late review; thanks for the contribution!

@freakboy3742 freakboy3742 merged commit 542bcbe into freakboy3742:main Feb 11, 2023
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.

None yet

2 participants