aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/download.go
Commit message (Collapse)AuthorAgeFilesLines
* Add golangci (#6418)kolaente2019-06-121-4/+16
|
* move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364)Lunny Xiao2019-03-271-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * move code.gitea.io/git to code.gitea.io/gitea/modules/git * fix imports * fix fmt * fix misspell * remove wrong tests data * fix unit tests * fix tests * fix tests * fix tests * fix tests * fix tests * enable Debug to trace the failure tests * fix tests * fix tests * fix tests * fix tests * fix tests * comment commit count tests since git clone depth is 50 * fix tests * update from code.gitea.io/git * revert change to makefile
* Allow markdown files to read from the LFS (#5787)zeripath2019-02-121-0/+56
| | | | | | | This PR makes it possible for the markdown renderer to render images and media straight from the LFS. Fix #5746 Signed-off-by: Andrew Thornton [art27@cantab.net](mailto:art27@cantab.net)
* Add raw blob endpoint to get objects by SHA ID (#5334)Peter Hoffmann2018-11-181-0/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add raw blob endpoint This should make it possible to download raw blobs directly from /:repo/:username/raw/blob/:sha1 URLs. * fix: Make it work * As an SHA-ID is no path getRefNameFromPath can't be used to verify file specifying parameter * added relevant change in go-gitea/git #132 Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * Update Gopkg.lock Can't update all vendors due to errors Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * style: Add Gitea copyright header * feat: Added integration test for /repo/u/r/raw/blob * fix: correct year in copyright header
* Handle refactor (#3339)Morgan Bazalgette2018-01-101-3/+3
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Memory usage improvements (#3013)Duncan Ogilvie2017-11-291-1/+2
| | | | | | | | | | * govendor update code.gitea.io/git Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com> * Greatly improve memory usage Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Download files to their original filename (#1676)silverwind2017-05-051-0/+2
|
* Fix empty file download (#1506)Lauris BH2017-04-201-1/+1
|
* Fix Chrome not liking commasAndrey Nering2016-11-261-0/+4
|
* Fix HTTP headers for issue attachment downloadAndrey Nering2016-11-261-7/+9
| | | | | - Download filename was wrong for files other than images. Example: It was `download` instead of `file.pdf` - PDF was downloading instead of showing on browser
* golint fixed for routers (#208)Lunny Xiao2016-11-241-0/+3
|
* Update import paths from github.com/go-gitea to code.gitea.io (#135)Sandro Santilli2016-11-101-3/+3
| | | | | | | - Update import paths from github.com/go-gitea to code.gitea.io - Fix import path for travis See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
* Replace gogits/git-module dependency with go-gitea/git (#94)Sandro Santilli2016-11-061-1/+1
| | | | | | | | * Replace gogits/git-module dependency with go-gitea/git Fixes #92 * Remove git alias for git module import (not needed)
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|
* router/repo: code refactoringUnknwon2016-08-301-4/+2
|
* Web editor: improve code qualityUnknwon2016-08-241-3/+3
|
* #2593 allow render raw contentUnknwon2016-08-051-1/+1
| | | | Use URL query parameter render=1 to render content in raw mode.
* Set utf-8 charset for text files when serving raw content (#2898)Tamás Molnár2016-04-201-1/+1
|
* #2842 add quotes to attachment file nameUnknwon2016-03-251-1/+1
|
* Rename module: middleware -> contextUnknwon2016-03-111-4/+4
|
* #2283 set text/plain for non-binary files in raw modeUnknwon2015-12-251-0/+2
|
* rename import pathUnknwon2015-12-151-1/+1
|
* move out git module and #1573 send push hookUnknwon2015-12-091-3/+4
|
* Merge pull request #1485 from donbowman/mime-type无闻2015-08-141-6/+1
|\ | | | | 43bfee0d4872932c1da185e8367e21795bc4ceb5 reverted my change
| * 43bfee0d4872932c1da185e8367e21795bc4ceb5 reverted my changeDon Bowman2015-08-131-6/+1
| | | | | | | | | | | | 423b1c69be7828c331a47467b66217d190e916b9, which in turn causes all content to be served as text/plain. Let go decide what the mime type is (e.g. text/html instead of text/plain).
* | fix serve attachment content typeUnknwon2015-08-121-8/+12
|/
* Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodingsVladimir Vissoultchev2015-07-291-1/+1
|
* Raw text file view returns correct charset in content-type header if not utf-8Vladimir Vissoultchev2015-07-281-4/+11
|
* don't set mime type to text/plain. This will break serving e.g. raw images,Don Bowman2015-04-081-1/+0
| | | | | | | | | html, etc According to http://golang.org/pkg/net/http/#DetectContentType "If the Header does not contain a Content-Type line, Write adds a Content-Type set to the result of passing the initial 512 bytes of written data to DetectContentType."
* routers/repo: set raw page content type to 'text/plain' #828Unknwon2015-01-311-4/+4
|
* GetFile apiUnknwon2014-11-161-9/+19
|
* Fix #605, fix #255, fix #101Unknwon2014-11-061-5/+3
|
* Huge updates!!!!! Be careful to merge!!!!Unknwon2014-07-261-41/+32
|
* New UI merge in progressUnknwon2014-07-261-91/+40
|
* Fixed directory permissions for the zip download routerJan Oliver Oelerich2014-06-011-1/+1
| | | If the archives/ directory is created with 0655, it results in a permission error.
* fix for new git apislene2014-05-281-4/+16
|
* Fixed #209Unknown2014-05-251-12/+9
|
* fix #195Unknown2014-05-161-2/+2
|
* Fix #186Unknown2014-05-161-7/+35
|
* zip archive downloadslene2014-04-161-0/+68