Unknwon
4400d2fdd9
Refactoring: rename package routers -> routes
8 years ago
Unknwon
2478b87432
Refactoring: rename ctx -> c
8 years ago
Jonas Östanbäck
9085c3b73d
repo/download: fix for downloading zero bytes files. ( #4436 )
...
Allocated buffer served to client and not properly truncated to
number of bytes read.
Signed-off-by: Jonas Östanbäck <jonas.ostanback@gmail.com>
8 years ago
Unknwon
6fbb984ebf
Refactoring: rename pkg/base -> pkg/tool
8 years ago
Unknwon
d05395fe90
Refactoring: rename modules -> pkg
...
Reasons to change:
1. Shorter than 'modules'
2. More generally used by other Go projects
3. Corresponds to the naming of '$GOPATH/pkg' directory
8 years ago
Unknwon
b3c4a39208
setting: add config option for raw file render mode ( #3608 )
...
Added '[repository] ENABLE_RAW_FILE_RENDER_MODE'.
8 years ago
Unknwon
1df54ea0cd
release: able to add attchments to release ( #1614 )
...
Added new config section '[release.attachment]’.
8 years ago
Unknwon
780cc2d110
router/repo: code refactoring
8 years ago
Unknwon
f8a48ffaad
Web editor: improve code quality
8 years ago
Unknwon
ab9c5fb5e7
#2593 allow render raw content
...
Use URL query parameter render=1 to render content in raw mode.
9 years ago
Tamás Molnár
39356f4238
Set utf-8 charset for text files when serving raw content ( #2898 )
9 years ago
Unknwon
dd36c431ec
#2842 add quotes to attachment file name
9 years ago
Unknwon
514382e2eb
Rename module: middleware -> context
9 years ago
Unknwon
93f03707a7
#2283 set text/plain for non-binary files in raw mode
9 years ago
Unknwon
19423957b1
rename import path
9 years ago
Unknwon
9a2e43bff2
move out git module and #1573 send push hook
9 years ago
Don Bowman
4137426c88
43bfee0d48
reverted my change
...
423b1c69be
, 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).
10 years ago
Don Bowman
599e904020
43bfee0d48
reverted my change
...
423b1c69be
, 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).
10 years ago
Don Bowman
9e6bd31d76
fixes for binary
10 years ago
Unknwon
e67659bf8e
fix serve attachment content type
10 years ago
Vladimir Vissoultchev
2cc050e21e
Fix UTF-8 in upper-case, use ansi charset for all non UTF-8 encodings
10 years ago
Vladimir Vissoultchev
43bfee0d48
Raw text file view returns correct charset in content-type header if not utf-8
10 years ago
Don Bowman
423b1c69be
don't set mime type to text/plain. This will break serving e.g. raw images,
...
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."
10 years ago
Unknwon
32152d2363
routers/repo: set raw page content type to 'text/plain' #828
10 years ago
Unknwon
a0f9197b45
GetFile api
10 years ago
Unknwon
23eec25274
Fix #605 , fix #255 , fix #101
10 years ago
Unknwon
5c4bc3c848
Huge updates!!!!! Be careful to merge!!!!
11 years ago
Unknwon
8dd07c0ddd
New UI merge in progress
11 years ago
Jan Oliver Oelerich
6fe43eb8d4
Fixed directory permissions for the zip download router
...
If the archives/ directory is created with 0655, it results in a permission error.
11 years ago
slene
4ee6bc4fca
fix for new git api
11 years ago
Unknown
688ec6ecbd
Fixed #209
11 years ago
Unknown
04890904f9
fix #195
11 years ago
Unknown
956f011dd3
Fix #186
11 years ago
slene
4fafc76052
zip archive download
11 years ago