Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix download file wrong content-type (#9825) (#9835) | Lunny Xiao | 2020-01-17 | 1 | -1/+7 |
| | | | | | | | | | | * Fix download file wrong content-type * change the error text to be more precise * fix test Co-authored-by: Lauris BH <lauris@nix.lv> | ||||
* | Add missed close in ServeBlobLFS (#8527) (#8542) | zeripath | 2019-10-16 | 1 | -0/+5 |
| | |||||
* | Add golangci (#6418) | kolaente | 2019-06-12 | 1 | -4/+16 |
| | |||||
* | move code.gitea.io/git to code.gitea.io/gitea/modules/git (#6364) | Lunny Xiao | 2019-03-27 | 1 | -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) | zeripath | 2019-02-12 | 1 | -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 Hoffmann | 2018-11-18 | 1 | -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 Bazalgette | 2018-01-10 | 1 | -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 Ogilvie | 2017-11-29 | 1 | -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) | silverwind | 2017-05-05 | 1 | -0/+2 |
| | |||||
* | Fix empty file download (#1506) | Lauris BH | 2017-04-20 | 1 | -1/+1 |
| | |||||
* | Fix Chrome not liking commas | Andrey Nering | 2016-11-26 | 1 | -0/+4 |
| | |||||
* | Fix HTTP headers for issue attachment download | Andrey Nering | 2016-11-26 | 1 | -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 Xiao | 2016-11-24 | 1 | -0/+3 |
| | |||||
* | Update import paths from github.com/go-gitea to code.gitea.io (#135) | Sandro Santilli | 2016-11-10 | 1 | -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 Santilli | 2016-11-06 | 1 | -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 Boulanouar | 2016-11-03 | 1 | -2/+2 |
| | |||||
* | router/repo: code refactoring | Unknwon | 2016-08-30 | 1 | -4/+2 |
| | |||||
* | Web editor: improve code quality | Unknwon | 2016-08-24 | 1 | -3/+3 |
| | |||||
* | #2593 allow render raw content | Unknwon | 2016-08-05 | 1 | -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ár | 2016-04-20 | 1 | -1/+1 |
| | |||||
* | #2842 add quotes to attachment file name | Unknwon | 2016-03-25 | 1 | -1/+1 |
| | |||||
* | Rename module: middleware -> context | Unknwon | 2016-03-11 | 1 | -4/+4 |
| | |||||
* | #2283 set text/plain for non-binary files in raw mode | Unknwon | 2015-12-25 | 1 | -0/+2 |
| | |||||
* | rename import path | Unknwon | 2015-12-15 | 1 | -1/+1 |
| | |||||
* | move out git module and #1573 send push hook | Unknwon | 2015-12-09 | 1 | -3/+4 |
| | |||||
* | Merge pull request #1485 from donbowman/mime-type | 无闻 | 2015-08-14 | 1 | -6/+1 |
|\ | | | | | 43bfee0d4872932c1da185e8367e21795bc4ceb5 reverted my change | ||||
| * | 43bfee0d4872932c1da185e8367e21795bc4ceb5 reverted my change | Don Bowman | 2015-08-13 | 1 | -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 type | Unknwon | 2015-08-12 | 1 | -8/+12 |
|/ | |||||
* | Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodings | Vladimir Vissoultchev | 2015-07-29 | 1 | -1/+1 |
| | |||||
* | Raw text file view returns correct charset in content-type header if not utf-8 | Vladimir Vissoultchev | 2015-07-28 | 1 | -4/+11 |
| | |||||
* | don't set mime type to text/plain. This will break serving e.g. raw images, | Don Bowman | 2015-04-08 | 1 | -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' #828 | Unknwon | 2015-01-31 | 1 | -4/+4 |
| | |||||
* | GetFile api | Unknwon | 2014-11-16 | 1 | -9/+19 |
| | |||||
* | Fix #605, fix #255, fix #101 | Unknwon | 2014-11-06 | 1 | -5/+3 |
| | |||||
* | Huge updates!!!!! Be careful to merge!!!! | Unknwon | 2014-07-26 | 1 | -41/+32 |
| | |||||
* | New UI merge in progress | Unknwon | 2014-07-26 | 1 | -91/+40 |
| | |||||
* | Fixed directory permissions for the zip download router | Jan Oliver Oelerich | 2014-06-01 | 1 | -1/+1 |
| | | | If the archives/ directory is created with 0655, it results in a permission error. | ||||
* | fix for new git api | slene | 2014-05-28 | 1 | -4/+16 |
| | |||||
* | Fixed #209 | Unknown | 2014-05-25 | 1 | -12/+9 |
| | |||||
* | fix #195 | Unknown | 2014-05-16 | 1 | -2/+2 |
| | |||||
* | Fix #186 | Unknown | 2014-05-16 | 1 | -7/+35 |
| | |||||
* | zip archive download | slene | 2014-04-16 | 1 | -0/+68 |