diff options
author | 2012-12-09 03:31:45 +0100 | |
---|---|---|
committer | 2012-12-09 08:09:02 +0530 | |
commit | f89408adb12a853f02e6f03787242e3d6cebd13c (patch) | |
tree | 7586ae7e01a97fce9dc07bdfb37a35815684fb92 /src/gitolite-shell | |
parent | (minor) lint had syntax errors (diff) | |
download | gitolite-gentoo-f89408adb12a853f02e6f03787242e3d6cebd13c.tar.gz gitolite-gentoo-f89408adb12a853f02e6f03787242e3d6cebd13c.tar.bz2 gitolite-gentoo-f89408adb12a853f02e6f03787242e3d6cebd13c.zip |
Set Content-Type to text/plain for gitolite commands over http
Explicitly set "Content-Type: text/plain" for gitolite commands when
issued over http, so that it is possible to see the output with normal
browsers.
(At least) Apache httpd might set the Content-Type to something
different and triggers a download instead of showing the text directly.
Signed-off-by: Sven Strickroth <email@cs-ware.de>
Diffstat (limited to 'src/gitolite-shell')
-rwxr-xr-x | src/gitolite-shell | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gitolite-shell b/src/gitolite-shell index 4bbae48..a3ec321 100755 --- a/src/gitolite-shell +++ b/src/gitolite-shell @@ -234,5 +234,6 @@ sub http_print_headers { print "Expires: Fri, 01 Jan 1980 00:00:00 GMT\r\n"; print "Pragma: no-cache\r\n"; print "Cache-Control: no-cache, max-age=0, must-revalidate\r\n"; + print "Content-Type: text/plain\r\n"; print "\r\n"; } |