lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


--- 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