[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Tip for using a Luasocket's http.require for cranky webservers...
- From: gary ng <garyng2000@...>
- Date: Sat, 20 Oct 2007 16:53:26 -0700 (PDT)
--- PA <petite.abeille@gmail.com> wrote:
>
> On Oct 20, 2007, at 02:46, gary ng wrote:
>
> > So I think it would be better to have headers sent
> as
> > proper cased for maximum compatibility.
>
> FWIW, here is a little utility function to
> capitalize headers:
>
> local function Capitalize( aValue )
> return ( aValue:lower():gsub( '(%l)([%w_\']*)',
> function( first,
> second ) return first:upper() .. second end ) )
> end
>
Thanks.
In the context of HTTP header, there is things like
Content-Md5 or Content-Length.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com