[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#207744: marked as done (mod_proxy adds extra Content-Type to cgi output)



Your message dated Mon, 1 Mar 2004 17:46:03 +0000
with message-id <20040301174603.GB25779@parcelfarce.linux.theplanet.co.uk>
and subject line HTTP is case sensitive
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 29 Aug 2003 14:16:26 +0000
>From Jose.deAbreuNunes@anthro.unige.ch Fri Aug 29 09:15:20 2003
Return-path: <Jose.deAbreuNunes@anthro.unige.ch>
Received: from murphy.debian.org [146.82.138.6] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19sk24-0003zk-00; Fri, 29 Aug 2003 09:15:20 -0500
Received: from mbx.unige.ch (mbx.unige.ch [129.194.9.229])
	by murphy.debian.org (Postfix) with ESMTP id 91AD727D10
	for <submit@bugs.debian.org>; Fri, 29 Aug 2003 07:53:42 -0500 (CDT)
Received: from CONVERSION-DAEMON.mbx.unige.ch by mbx.unige.ch
 (PMDF V6.2-X3 #30614) id <0HKD00001T5FR4@mbx.unige.ch> for
 submit@bugs.debian.org; Fri, 29 Aug 2003 14:53:40 +0200 (MEST)
Received: from localhost.localdomain ([129.194.46.128])
 by mbx.unige.ch (PMDF V6.2-X3 #30614)
 with ESMTPS id <0HKD00JNST5FQY@mbx.unige.ch> for submit@bugs.debian.org; Fri,
 29 Aug 2003 14:53:39 +0200 (MEST)
Date: Fri, 29 Aug 2003 14:53:38 +0200
From: =?ISO-8859-1?Q?Jos=E9?= Manuel Nunes <Jose.deAbreuNunes@anthro.unige.ch>
Subject: mod_proxy adds extra Content-Type to cgi output
To: submit@bugs.debian.org
Message-id: <1062161618.412.25.camel@sophne>
MIME-version: 1.0
X-Mailer: Ximian Evolution 1.0.5
Content-type: text/plain; CHARSET=us-ascii
Content-transfer-encoding: 7BIT
X-Comment: This message was scanned against viruses by mbx.unige.ch.
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0
	tests=HAS_PACKAGE,USER_AGENT_XIMIAN
	version=2.53-bugs.debian.org_2003_8_27
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (1.174.2.15-2003-03-30-exp)

Package: apache
Version: 1.3.26-0woody3

mod_proxy adds extra "Content-Type: text/plain" to cgi-script output
from the forwarded server.

For instance, direct access to the forwarded server gives:
telnet server2 80
...
GET x.acgi?y HTTP/1.0

HTTP/1.0 200 OK
Server: WebSTAR/1.0 ID/ACGI
MIME-Version 1.0
Content-type: text/html

....

While access by ProxyPass gives
telnet server1 80
...
HTTP/1.1 200 OK
Date: Fri, 29 Aug 2003 12:21:56 GMT
X-Cache: MISS from server1
Connection: close
Content-Type: text/plain

Content-type: text/html

....


I'm using woody, kernel 2.4.20, libc6 2.2.5-11.5

The problem affects cgi pages only: html pages are correctly forwarded.
Using or not ProxyPassReverse has no effect.


---------------------------------------
Received: (at 207744-done) by bugs.debian.org; 1 Mar 2004 17:46:05 +0000
>From willy@www.linux.org.uk Mon Mar 01 09:46:05 2004
Return-path: <willy@www.linux.org.uk>
Received: from parcelfarce.linux.theplanet.co.uk (www.linux.org.uk) [195.92.249.252] (93)
	by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AxrUT-0003fS-00; Mon, 01 Mar 2004 09:46:05 -0800
Received: from willy by www.linux.org.uk with local (Exim 4.22)
	id 1AxrUR-0003Zl-Ph; Mon, 01 Mar 2004 17:46:03 +0000
Date: Mon, 1 Mar 2004 17:46:03 +0000
From: Matthew Wilcox <willy@debian.org>
To: 207744-done@bugs.debian.org
Cc: 207744-submitter@bugs.debian.org
Subject: HTTP is case sensitive
Message-ID: <20040301174603.GB25779@parcelfarce.linux.theplanet.co.uk>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.4.1i
Sender: <willy@www.linux.org.uk>
Delivered-To: 207744-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_01 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=0.0 required=4.0 tests=none autolearn=no 
	version=2.60-bugs.debian.org_2004_03_01
X-Spam-Level: 


Spotted the problem; it's in the cgi script, not apache.

You wrote:
> HTTP/1.1 200 OK
> Date: Fri, 29 Aug 2003 12:21:56 GMT
> X-Cache: MISS from server1
> Connection: close
> Content-Type: text/plain
> 
> Content-type: text/html

Note the upper versus lower case T of Content-Type.

-- 
"Next the statesmen will invent cheap lies, putting the blame upon 
the nation that is attacked, and every man will be glad of those
conscience-soothing falsities, and will diligently study them, and refuse
to examine any refutations of them; and thus he will by and by convince 
himself that the war is just, and will thank God for the better sleep 
he enjoys after this process of grotesque self-deception." -- Mark Twain



Reply to: