Sorry, I was extending wsapi.common to be able to send raw HTTP responses, and this went through. The fix is trivial, move line 284 of wsapi.common to just after line 285 (after the guard that checks if the caller wants a raw HTTP response). WSAPI is not doing the encoding, just sending the header (it only does the encoding if you want a raw response).
I commited the fix and will package this up as 1.3.2 later today (no time to do that right now). Thanks for the heads-up. BTW, from RFC2616: "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)]. It MUST be possible to combine the multiple header fields into one "field-name: field-value" pair, without changing the semantics of the message, by appending each subsequent field-value to the first, each separated by a comma. The order in which header fields with the same field-name are received is therefore significant to the interpretation of the combined field value, and thus a proxy MUST NOT change the order of these field values when a message is forwarded." So WSAPI is in the wrong and the Perl http library is in the right. :-) -- Fabio Mascarenhas On Fri, Mar 19, 2010 at 12:39 PM, Alexander Gladysh <aglad...@gmail.com> wrote: >> Some HTTP clients (like Perl HTTP library) get confused and die when >> they see two content-type headers. > > I mean Transfer-Encoding headers of course. > > Pardon me for the lack of knowledge of FCGI stuff, but, I wonder, is > it a job for WSAPI to do chunked encoding (or gzip encoding or > whatever)? Shouldn't it be done elsewhere? > > Alexander. > > _______________________________________________ > Kepler-Project mailing list > Kepler-Project@lists.luaforge.net > http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project > http://www.keplerproject.org/ > _______________________________________________ Kepler-Project mailing list Kepler-Project@lists.luaforge.net http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project http://www.keplerproject.org/