1
0
Fork 0
forgejo/modules/lfs
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
..
content_store.go Add LFS object verification step after upload (#2868) 2017-11-08 15:04:19 +02:00
LICENSE Git LFS support v2 (#122) 2016-12-26 09:16:37 +08:00
locks.go Move sdk structs to modules/structs (#6905) 2019-05-11 18:21:34 +08:00
pointers.go Allow markdown files to read from the LFS (#5787) 2019-02-12 15:09:43 +00:00
server.go Fix /verify LFS handler expecting wrong content-type (#7015) 2019-05-24 22:21:00 +01:00