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

From: Jos Backus <jos@...>
Date: 2004-05-17 06:19:37 UTC
List: ruby-core #2890
On Mon, May 17, 2004 at 01:31:50PM +0900, Yukihiro Matsumoto wrote:
> 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.

My face is so red. I was missing the obvious. Thanks to both of you for
clearing this up. I'll go and hide in shame now :-/

-- 
Jos Backus                       _/  _/_/_/      Sunnyvale, CA
                                _/  _/   _/
                               _/  _/_/_/
                          _/  _/  _/    _/
jos at catnook.com        _/_/   _/_/_/          require 'std/disclaimer'

In This Thread

Prev Next