http headers is case insensitive, so any kind of case is valid. On Wed, Sep 24, 2014 at 9:14 PM, sandp <[email protected]> wrote: > With *camel-restlet 2.13.*1, my code used to look into* > org.restlet.http.headers* to identify the Content-Type, I upgraded to* > camel-restlet 2.14.0*, and my code is failing, as it wasn't able to find the > Content-Type in the org.restlet.http.headers > On comparing the headers in both versions, I see that camel-restlet 2.14.0 > has *Content-type* instead of* Content-Type*. > > > > Series<NamedValue<String>> series = (Series<NamedValue<String>>) > headerMap.get("org.restlet.http.headers"); > *camel-restlet 2.13.1* > {pattern=users, org.restlet.http.headers=[[Host: localhost:8090], > [User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) Gecko/20100101 > Firefox/32.0], [Accept: application/xml], [Accept-Language: en-US,en;q=0.5], > [Accept-Encoding: gzip,deflate], *[Content-Type: application/xml]*, > [Connection: keep-alive]], org.restlet.startTime=1411585568763} > > > *camel-restlet 2.14.0* > [*[Content-type: application/xml]*, [Host: localhost:8090], > [Accept-encoding: gzip,deflate], [Connection: keep-alive], [Accept-language: > en-US,en;q=0.5], [User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:32.0) > Gecko/20100101 Firefox/32.0], [Accept: application/xml]] > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/Camel-Restlet-2-14-0-Content-type-instead-of-Content-Type-tp5756982.html > Sent from the Camel - Users mailing list archive at Nabble.com.
-- Claus Ibsen ----------------- Red Hat, Inc. Email: [email protected] Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/
