Fix header output (extra newline required).
This commit is contained in:
parent
1e10341242
commit
37f918722e
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37454
1 changed files with 5 additions and 5 deletions
|
@ -26,7 +26,7 @@
|
||||||
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||||
# SUCH DAMAGE.
|
# SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
# $FreeBSD: www/en/cgi/query-pr.cgi,v 1.74 2011/07/21 02:44:20 shaun Exp $
|
# $FreeBSD: www/en/cgi/query-pr.cgi,v 1.75 2011/07/21 03:06:06 shaun Exp $
|
||||||
#
|
#
|
||||||
# Useful PRs for testing:
|
# Useful PRs for testing:
|
||||||
#
|
#
|
||||||
|
@ -190,7 +190,7 @@ sub main
|
||||||
($patch->isbinary ? 'application/octet-stream' : 'text/plain');
|
($patch->isbinary ? 'application/octet-stream' : 'text/plain');
|
||||||
|
|
||||||
printf 'Content-Length: "%s"'."\r\n"
|
printf 'Content-Length: "%s"'."\r\n"
|
||||||
. 'Content-Disposition: inline; filename="%s"'."\r\n",
|
. 'Content-Disposition: inline; filename="%s"'."\r\n\r\n",
|
||||||
$patch->size,
|
$patch->size,
|
||||||
$patch->filename;
|
$patch->filename;
|
||||||
|
|
||||||
|
@ -692,12 +692,12 @@ sub ErrorExit
|
||||||
my $url = $q->url(-full => 1, -query => 1);
|
my $url = $q->url(-full => 1, -query => 1);
|
||||||
|
|
||||||
if ($code == EXIT_NOPRS) {
|
if ($code == EXIT_NOPRS) {
|
||||||
print "Content-type: text/plain; charset=UTF-8\r\n";
|
print "Content-type: text/plain; charset=UTF-8\r\n\r\n";
|
||||||
print html_header("No PRs Matched Query");
|
print html_header("No PRs Matched Query");
|
||||||
displayform();
|
displayform();
|
||||||
print html_footer();
|
print html_footer();
|
||||||
} elsif ($code == EXIT_DBBUSY) {
|
} elsif ($code == EXIT_DBBUSY) {
|
||||||
print "Content-type: text/plain; charset=UTF-8\r\n";
|
print "Content-type: text/plain; charset=UTF-8\r\n\r\n";
|
||||||
print html_header("PR Database Busy");
|
print html_header("PR Database Busy");
|
||||||
print $q->p(
|
print $q->p(
|
||||||
'Please '
|
'Please '
|
||||||
|
@ -706,7 +706,7 @@ sub ErrorExit
|
||||||
);
|
);
|
||||||
print html_footer();
|
print html_footer();
|
||||||
} elsif ($code == EXIT_NOPATCH) {
|
} elsif ($code == EXIT_NOPATCH) {
|
||||||
print "Content-type: text/plain; charset=UTF-8\r\n";
|
print "Content-type: text/plain; charset=UTF-8\r\n\r\n";
|
||||||
print "No such patch!\n";
|
print "No such patch!\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue