1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-02 02:22:32 +02:00
gitea/modules
Marat Radchenko 844f9a4bd8 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
2019-05-24 22:21:00 +01:00
..
auth
avatar Use assert in legacy unit tests (#867) 2017-02-08 14:29:07 +08:00
base
cache
context
cron
generate
git Show git-notes (#6984) 2019-05-24 10:52:05 +03:00
gzip
highlight
httplib
indexer
lfs Fix /verify LFS handler expecting wrong content-type (#7015) 2019-05-24 22:21:00 +01:00
log
mailer
markup
metrics
migrations
minwinsvc
notification
options
pprof
private
process
public
recaptcha
repofiles
search
secret
session
setting
ssh
structs
sync
templates Show git-notes (#6984) 2019-05-24 10:52:05 +03:00
test
user
util
validation