timp / atombeat

Automatically exported from code.google.com/p/atombeat
1 stars 1 forks source link

xutil:get-header does not do case-insensitive match #160

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make an internal protocol request with a 'Slug' header to create a member

What is the expected output? What do you see instead?
expect the slug is seen, instead slug is ignored because comparisons are 
matched against lowercase only for internal requests

Original issue reported on code.google.com by alimanfoo@googlemail.com on 28 Feb 2011 at 4:43

GoogleCodeExporter commented 9 years ago
just to explain this a bit better, currently if you make an internal protocol 
request by calling atom-protocol:do-* or plugin-util:* and you pass a request 
fragment like:

<request>
    <method>POST</method>
    <path-info>/foo</path-info>
    <headers>
        <header>
            <name>Slug</name>
            <value>bar</value>
        </header>
        <header>
            <name>Accept</name>
            <value>application/atom+xml</value>
        </header>
    </headers>
    ....
</request>

...then niether of the headers will be recognised because the protocol engine 
expects all header names to have been converted to lower-case.

To work around this issue in atombeat-0.2-alpha-7 make sure all header names 
are given in lower case.

Original comment by alimanfoo@googlemail.com on 28 Feb 2011 at 4:46

GoogleCodeExporter commented 9 years ago

Original comment by alimanfoo@googlemail.com on 28 Feb 2011 at 4:46

GoogleCodeExporter commented 9 years ago

Original comment by alimanfoo@googlemail.com on 1 Mar 2011 at 10:31