diff options
author | Marat Radchenko <marat@slonopotamus.org> | 2019-05-25 00:21:00 +0300 |
---|---|---|
committer | zeripath <art27@cantab.net> | 2019-05-24 22:21:00 +0100 |
commit | 844f9a4bd8c5c35a9dab598442b4b3d58153f026 (patch) | |
tree | 091ad89eb953afc1bb8d876c04ba14d73e33a8f9 /.revive.toml | |
parent | 61f00bc238ac045332c350ae817338be161893e7 (diff) | |
download | gitea-844f9a4bd8c5c35a9dab598442b4b3d58153f026.tar.gz gitea-844f9a4bd8c5c35a9dab598442b4b3d58153f026.zip |
Fix /verify LFS handler expecting wrong content-type (#7015)
Fixes #6960
According to [spec][1], /verify requests must have `Accept: application/vnd.git-lfs+json`
Previous code works because `git-lfs` also [violates spec and doesn't send any Accept header at all][2]
For other clients that DO set `Accept: application/vnd.git-lfs+json`, addition of `Accept: application/vnd.git-lfs`
either forces them to violate the spec or is ignored, depending on order in what they create header list.
[1]: https://github.com/git-lfs/git-lfs/blob/master/docs/api/basic-transfers.md#verification
[2]: https://github.com/git-lfs/git-lfs/issues/3662
Diffstat (limited to '.revive.toml')
0 files changed, 0 insertions, 0 deletions