httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian McCallister <bri...@skife.org>
Subject Re: patch for handling headers_in and headers_out as tables in mod_lua
Date Thu, 05 Feb 2009 18:51:51 GMT
On Thu, Feb 5, 2009 at 10:44 AM, Brian Akins <brian@akins.org> wrote:
> Is this in trunk? I don't see it, but I've been known to overlook stuff.

It is in trunk (httpd trunk)

>
> On 1/26/09 1:45 PM, "Brian McCallister" <brianm@skife.org> wrote:
>
>> For anyone following, it has been applied :-)
>>
>
>>>>>>>
>>>>>>> -- NEW
>>>>>>> function handle(r)
>>>>>>> local host = r.headers_in['host']
>>>>>>> r:puts(host)
>>>>>>>
>>>>>>> -- and can now modify them
>>>>>>> r.headers_in['X-XX-Fake'] = 'rabbits!'
>>>>>>> r.headers_out['wombat'] = 'lua now!'
>>>>>>> end
>
> Wasn't this the way it used to be?

Yep, Paul changed the internal impl to be less gross, but in doing so
changed the API, i changed the impl to be not gross and restored old
API.

>
> --bakins
>
>
>

Mime
View raw message