0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-30 16:45:51 +01:00
Go to file
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
.github Add security note to issue template (#6281) 2019-03-08 13:15:46 -05:00
assets
cmd Ignore non-standard refs in git push (#6758) 2019-05-14 10:40:27 -04:00
contrib Add work path CLI option (#6922) 2019-05-14 11:20:35 -04:00
custom/conf Add support of utf8mb4 for mysql (#6992) 2019-05-24 00:15:26 -04:00
docker [docker] support for custom GITEA_CUSTOM env var (#6608) 2019-05-13 18:19:37 -04:00
docs Add support of utf8mb4 for mysql (#6992) 2019-05-24 00:15:26 -04:00
integrations Change UpdateRepoIndex api to include watchers (#7012) 2019-05-23 17:00:07 +01:00
models Fix default for allowing new organization creation for new users (#7017) 2019-05-24 19:40:45 +03:00
modules Fix /verify LFS handler expecting wrong content-type (#7015) 2019-05-24 22:21:00 +01:00
options [skip ci] Updated translations via Crowdin 2019-05-24 16:44:08 +00:00
public Show git-notes (#6984) 2019-05-24 10:52:05 +03:00
routers Show git-notes (#6984) 2019-05-24 10:52:05 +03:00
scripts
snap
templates Show git-notes (#6984) 2019-05-24 10:52:05 +03:00
vendor Handle CORS requests (#6289) 2019-05-13 11:38:53 -04:00
.changelog.yml
.drone.yml add make targets for js and css, add js linter (#6952) 2019-05-16 08:57:47 +03:00
.editorconfig Add autoprefixer to css build (#6029) 2019-02-11 01:13:30 -05:00
.eslintrc add make targets for js and css, add js linter (#6952) 2019-05-16 08:57:47 +03:00
.gitattributes
.gitignore remove and disable package-lock (#6969) 2019-05-16 15:33:54 -04:00
.lesshintrc.json Add less linter via npx (#6936) 2019-05-14 08:54:23 +08:00
.lgtm
.npmrc remove and disable package-lock (#6969) 2019-05-16 15:33:54 -04:00
.revive.toml refactor: replace lint to revive (#5422) 2018-12-03 09:28:46 -05:00
BSDmakefile
CHANGELOG.md 1.8.1 changelog (#6877) (#6878) 2019-05-08 12:21:24 -04:00
CONTRIBUTING.md add make targets for js and css, add js linter (#6952) 2019-05-16 08:57:47 +03:00
DCO
Dockerfile [docker] drop the docker Makefile from the image (#6507) 2019-05-05 22:49:32 -04:00
go.mod Handle CORS requests (#6289) 2019-05-13 11:38:53 -04:00
go.sum Handle CORS requests (#6289) 2019-05-13 11:38:53 -04:00
LICENSE
main.go Add work path CLI option (#6922) 2019-05-14 11:20:35 -04:00
MAINTAINERS Add myself to MAINTAINERS (#6554) 2019-04-09 15:42:20 -04:00
Makefile add make targets for js and css, add js linter (#6952) 2019-05-16 08:57:47 +03:00
package.json remove and disable package-lock (#6969) 2019-05-16 15:33:54 -04:00
README_ZH.md docs(*): fix codecov bad links in README_ZH (#6850) 2019-05-05 12:46:32 +03:00
README.md

简体中文

Gitea - Git with a cup of tea

Build Status Join the Discord chat at https://discord.gg/NsatcWJ codecov Go Report Card GoDoc GitHub release Help Contribute to Open Source Become a backer/sponsor of gitea

Purpose

The goal of this project is to make the easiest, fastest, and most painless way of setting up a self-hosted Git service. Using Go, this can be done with an independent binary distribution across all platforms which Go supports, including Linux, macOS, and Windows on x86, amd64, ARM and PowerPC architectures. Want to try it before doing anything else? Do it with the online demo! This project has been forked from Gogs since 2016.11 but changed a lot.

Building

From the root of the source tree, run:

TAGS="bindata" make generate all

More info: https://docs.gitea.io/en-us/install-from-source/

Using

./gitea web

NOTE: If you're interested in using our APIs, we have experimental support with documentation.

Contributing

Expected workflow is: Fork -> Patch -> Push -> Pull Request

NOTES:

  1. YOU MUST READ THE CONTRIBUTORS GUIDE BEFORE STARTING TO WORK ON A PULL REQUEST.
  2. If you have found a vulnerability in the project, please write privately to security@gitea.io. Thanks!

Further information

For more information and instructions about how to install Gitea, please look at our documentation. If you have questions that are not covered by the documentation, you can get in contact with us on our Discord server, or forum!

Authors

Backers

Thank you to all our backers! 🙏 [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

FAQ

How do you pronounce Gitea?

Gitea is pronounced /ɡɪti:/ as in "gi-tea" with a hard g.

Why is this not hosted on a Gitea instance?

We're working on it.

License

This project is licensed under the MIT License. See the LICENSE file for the full license text.

Screenshots

Looking for an overview of the interface? Check it out!

Dashboard Repository Commits History
Branches Issues Pull Request View
Releases Activity Wiki
Diff Organization Profile