Skip to content

Conversation

@chrisd8088
Copy link
Member

Since at least commit 099adaa in 2013 the Git LFS client has included a charset=utf-8 parameter in some or all of the Content-Type headers it sends to server API endpoints.

As noted in #5775, we do not at present mention this parameter in our API documentation, and the charset parameter is not required by any IETF RFCs for MIME types other than text/* types, so we update our documentation to mention that servers should be prepared to accept this header parameter but that it is not required.

Thanks to @KalleOlaviNiemitalo for the suggestion!

Since at least commit 099adaa in 2013
the Git LFS client has included a "charset=utf-8" parameter in some
or all of the Content-Type headers it sends to server API endpoints.

As noted in git-lfs#5775, we do not at present mention this parameter in
our API documentation, and the "charset" parameter is not required
by any IETF RFCs for MIME types other than "text/*" types, so we
note that servers should be prepared to accept this header parameter
but that it is not required.

h/t KalleOlaviNiemitalo for the suggestion
@chrisd8088 chrisd8088 merged commit cbe7367 into git-lfs:main Jun 7, 2024
@chrisd8088 chrisd8088 deleted the docs-api-charset-note branch June 7, 2024 15:55
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