lua-users home
lua-l archive

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


On 4 August 2015 at 07:01, Sean Conner <sean@conman.org> wrote:
>But I used a custom function to store the data into a table instead
>         of rawset().  There can be multiple headers with the same name
>         (Received: comes to mind) and each one is important.

Yeah; HTTP/MIME style duplicate headers where order matters are tricky.
I cookied up a data stucture for just this purpose:
https://github.com/daurnimator/lua-http/blob/master/http/headers.lua