Don't output the Content-type header twice.

Submitted by:	gavin
This commit is contained in:
Shaun Amott 2011-07-21 12:37:17 +00:00
parent 37f918722e
commit eeb78bf5c8
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/www/; revision=37455

View file

@ -26,7 +26,7 @@
# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
# 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:
#
@ -692,12 +692,10 @@ sub ErrorExit
my $url = $q->url(-full => 1, -query => 1);
if ($code == EXIT_NOPRS) {
print "Content-type: text/plain; charset=UTF-8\r\n\r\n";
print html_header("No PRs Matched Query");
displayform();
print html_footer();
} elsif ($code == EXIT_DBBUSY) {
print "Content-type: text/plain; charset=UTF-8\r\n\r\n";
print html_header("PR Database Busy");
print $q->p(
'Please '