Don't output the Content-type header twice.
Submitted by: gavin
This commit is contained in:
parent
37f918722e
commit
eeb78bf5c8
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37455
1 changed files with 1 additions and 3 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.75 2011/07/21 03:06:06 shaun Exp $
|
# $FreeBSD: www/en/cgi/query-pr.cgi,v 1.76 2011/07/21 03:27:58 shaun Exp $
|
||||||
#
|
#
|
||||||
# Useful PRs for testing:
|
# Useful PRs for testing:
|
||||||
#
|
#
|
||||||
|
@ -692,12 +692,10 @@ 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\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\r\n";
|
|
||||||
print html_header("PR Database Busy");
|
print html_header("PR Database Busy");
|
||||||
print $q->p(
|
print $q->p(
|
||||||
'Please '
|
'Please '
|
||||||
|
|
Loading…
Reference in a new issue