Skip to content

Set the Content-Type header for binary content #24

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

Merged
merged 1 commit into from
Jan 13, 2024

Conversation

wvanlint
Copy link
Contributor

Reverse proxies can default to different content types with UTF-8 encoding and reject/modify the body. This change sets the Content-type header in requests to application/octet-stream as the body will be a serialized protocol buffer.

Copy link
Collaborator

@G8XSU G8XSU left a comment

Choose a reason for hiding this comment

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

LGTM!
Feel free to squash after minor fixes.

Reverse proxies can default to different content types with UTF-8
encoding and reject/modify the body. This change sets the `Content-type`
header in requests to `application/octet-stream` as the body will be a
serialized protocol buffer.
@wvanlint
Copy link
Contributor Author

Thanks for the quick review!

@wvanlint wvanlint requested a review from G8XSU January 13, 2024 02:07
@G8XSU G8XSU merged commit 4dbe776 into lightningdevkit:main Jan 13, 2024
@G8XSU G8XSU mentioned this pull request Jan 13, 2024
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.

2 participants