projects
/
webmin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c8547c
)
Set correct content length header
author
Jamie Cameron
<jcameron@webmin.com>
Sun, 7 Nov 2010 01:43:47 +0000
(18:43 -0700)
committer
Jamie Cameron
<jcameron@webmin.com>
Sun, 7 Nov 2010 01:43:47 +0000
(18:43 -0700)
updown/fetch.cgi
patch
|
blob
|
history
diff --git
a/updown/fetch.cgi
b/updown/fetch.cgi
index
8bccd25
..
bfa00c1
100755
(executable)
--- a/
updown/fetch.cgi
+++ b/
updown/fetch.cgi
@@
-47,7
+47,7
@@
if ($ENV{'PATH_INFO'}) {
"<tt>".&html_escape($out)."</tt>"));
}
@st = stat($temp);
- print "Content-
size
: $st[7]\n";
+ print "Content-
length
: $st[7]\n";
print "Content-type: application/zip\n\n";
open(FILE, $temp);
unlink($temp);
@@
-79,7
+79,7
@@
if ($ENV{'PATH_INFO'}) {
print "Content-Disposition: Attachment\n";
}
@st = stat($file);
- print "Content-
size
: $st[7]\n";
+ print "Content-
length
: $st[7]\n";
print "Content-type: $type\n\n";
while(<FILE>) {
print $_;