El Domingo, 10 de Enero de 2010, skaar escribió:
> > The Rack (and CGI) specs require that '-' be replaced with '_' for
> > HTTP header names, so Unicorn is doing the correct thing and treating
> > it as the same header.
> 
> but should it aggregate the values?

Hi, review my other response in this thread.

This is undefined. Some headers do allow multiple values separated by comma in 
the same header with the same meaning as varios headers with same name and 
single values. But this depends on each header specification.

In your case it seems valid for me (just an opinnion) as 
"HTTP_X_FORWARDED_PROTO: http,https" could mean that the request has been sent 
using HTTPS and an intermediary proxy has forwarded it using HTTP. Of course 
the final destination (Unicorn application) must be ready to support such 
syntax.


-- 
Iñaki Baz Castillo <i...@aliax.net>
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying

Reply via email to