Re: cgi.rb: option to omit HTTP header emission

From: matz@... (Yukihiro Matsumoto)
Date: 2004-05-17 04:31:50 UTC
List: ruby-core #2888
Hi,

In message "Re: cgi.rb: option to omit HTTP header emission"
    on 04/05/17, Jeff Mitchell <quixoticsycophant@yahoo.com> writes:

|--- Jos Backus <jos@catnook.com> wrote:
|> What needs to be done for this patch to become part of the official cgi.rb? If
|> it is not acceptable in its current form, what can I do to improve it so it
|> is? I have mailed Wakou Aoyama but not received a response so far.
|> 
|
|I don't know the context of the problem you are solving, but if you don't
|want headers then just omit CGI#out,

Yes.  As far as I read, CGI#out does the following jobs:

  * converting (Japanese) text encoding.
  * prepare header
  * print header and contents.

So, I guess you don't need to call CGI#out when you don't want
headers.

							matz.

In This Thread