Browse files

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

(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 <>
  • Loading branch information...
csware authored and sitaramc committed Dec 9, 2012
1 parent fc7ddfc commit f89408adb12a853f02e6f03787242e3d6cebd13c
Showing with 1 addition and 0 deletions.
  1. +1 −0 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";

0 comments on commit f89408a

Please sign in to comment.