mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
f72ce26326
* Add Content-Length header to HEAD requests This change adds the header Content-Length to HEAD HTTP requests. The previous behaviour was blocking some Windows executables (i.e bitsadmin.exe) from downloading files hosted in Gitea. This along with PR #14541, makes the web server compliant with HTTP RFC 2616 which states "The methods GET and HEAD MUST be supported by all general-purpose servers" and "The HEAD method is identical to GET except that the server MUST NOT return a message-body in the response." This should also respond to issues #8030 and #14532. * This change adds the header Content-Length to HEAD HTTP requests Pass the Size of the content as a parameter to ServeData() instead of calculating it using ioutil.ReadAll(reader) --> this call is dangerous and can result in a denial of service. * Add Content-Length header to HEAD requests Quick fix for imported dependency not used. * Check if size is positiv int ... Co-authored-by: zeripath <art27@cantab.net> |
4 years ago | |
---|---|---|
.. | ||
activity.go | 5 years ago | |
attachment.go | 4 years ago | |
blame.go | 4 years ago | |
branch.go | 4 years ago | |
commit.go | 4 years ago | |
compare.go | 4 years ago | |
download.go | 4 years ago | |
editor.go | 4 years ago | |
editor_test.go | 5 years ago | |
http.go | 4 years ago | |
issue.go | 4 years ago | |
issue_dependency.go | 5 years ago | |
issue_label.go | 4 years ago | |
issue_label_test.go | 4 years ago | |
issue_lock.go | 4 years ago | |
issue_stopwatch.go | 4 years ago | |
issue_test.go | 4 years ago | |
issue_timetrack.go | 4 years ago | |
issue_watch.go | 5 years ago | |
lfs.go | 4 years ago | |
main_test.go | 7 years ago | |
middlewares.go | 5 years ago | |
migrate.go | 4 years ago | |
milestone.go | 4 years ago | |
projects.go | 4 years ago | |
projects_test.go | 4 years ago | |
pull.go | 4 years ago | |
pull_review.go | 4 years ago | |
release.go | 4 years ago | |
release_test.go | 4 years ago | |
repo.go | 4 years ago | |
search.go | 4 years ago | |
setting.go | 4 years ago | |
setting_protected_branch.go | 4 years ago | |
settings_test.go | 4 years ago | |
topic.go | 5 years ago | |
view.go | 4 years ago | |
webhook.go | 4 years ago | |
wiki.go | 4 years ago | |
wiki_test.go | 4 years ago |