Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Manlio Perillo
Phillip J. Eby ha scritto: > [...] >> Note that some of these headers are response headers, and it is >> responsibility of the WSGI application to properly folding them, and not >> of the WSGI gateway. > > On the contrary. The gateway is responsible for sending *all* the > header lines to the cl

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Phillip J. Eby
At 10:27 PM 10/2/2007 +0200, Manlio Perillo wrote: >Robert Brewer ha scritto: > > > > [...] > > As you note, it's part of the HTTP spec that such headers > > can be combined without changing the semantics. Here's a list of the > > headers that need to be folded: > > > > comma_separated_headers = [

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 10:03 PM 10/2/2007 +0200, Manlio Perillo wrote: >> Manlio Perillo ha scritto: >> > [...] >> > As an example Nginx stores all the headers in a associative array, >> > where, of course, only the "last seen" headers appears. >> > >> >> A correction: Nginx stores "raw" h

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Phillip J. Eby
At 10:03 PM 10/2/2007 +0200, Manlio Perillo wrote: >Manlio Perillo ha scritto: > > [...] > > As an example Nginx stores all the headers in a associative array, > > where, of course, only the "last seen" headers appears. > > > >A correction: Nginx stores "raw" headers in a list of key/value pairs, >

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Manlio Perillo
Robert Brewer ha scritto: > > [...] > As you note, it's part of the HTTP spec that such headers > can be combined without changing the semantics. Here's a list of the > headers that need to be folded: > > comma_separated_headers = ['ACCEPT', 'ACCEPT-CHARSET', 'ACCEPT-ENCODING', > 'ACCEPT-LANG

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Manlio Perillo
Phillip J. Eby ha scritto: > At 09:30 PM 10/2/2007 +0200, Manlio Perillo wrote: >> The HTTP 1.1 protocol (section 4.2) says that: >> """Multiple message-header fields with the same field-name MAY be >> present in a message if and only if the entire field-value for that >> header field is defined as

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Manlio Perillo
Manlio Perillo ha scritto: > [...] > As an example Nginx stores all the headers in a associative array, > where, of course, only the "last seen" headers appears. > A correction: Nginx stores "raw" headers in a list of key/value pairs, and not in an associative array. This means that when I ite

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Robert Brewer
Manlio Perillo wrote: > The HTTP 1.1 protocol (section 4.2) says that: > """Multiple message-header fields with the same field-name MAY be > present in a message if and only if the entire field-value for that > header field is defined as a comma-separated list [i.e., #(values)].""" > > This can

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Alex Botero-Lowry
On Tue, Oct 02, 2007 at 09:30:46PM +0200, Manlio Perillo wrote: > The HTTP 1.1 protocol (section 4.2) says that: > """Multiple message-header fields with the same field-name MAY be > present in a message if and only if the entire field-value for that > header field is defined as a comma-separated

Re: [Web-SIG] hop-by-hop headers handling

2007-10-02 Thread Phillip J. Eby
At 05:47 PM 10/1/2007 +0200, Manlio Perillo wrote: >Hi, I have another question with error handling. > >The WSGI spec only says that applications *must* not generate hop-by-hop >headers, but says nothing on how a WSGI server should handle them. > >In the previous version of nginx mod_wsgi I just ig

Re: [Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Phillip J. Eby
At 09:30 PM 10/2/2007 +0200, Manlio Perillo wrote: >The HTTP 1.1 protocol (section 4.2) says that: >"""Multiple message-header fields with the same field-name MAY be >present in a message if and only if the entire field-value for that >header field is defined as a comma-separated list [i.e., #(valu

[Web-SIG] Multiple message-header fields handling

2007-10-02 Thread Manlio Perillo
The HTTP 1.1 protocol (section 4.2) says that: """Multiple message-header fields with the same field-name MAY be present in a message if and only if the entire field-value for that header field is defined as a comma-separated list [i.e., #(values)].""" This can happen, as an example, with the Co