[OpenLayers-Users] [Geoserver-users] Content-type versus Content-Type

Andrea Aime aaime at openplans.org
Wed Jan 23 11:02:29 EST 2008


Bart van den Eijnden (OSGIS) ha scritto:
> Hi list,
> 
> first of all sorry for the cross-post, but I really have no clue if this is
> a Geoserver or an OpenLayers issue.
> 
> I was using an OpenLayers AJAX POST call to Geoserver via proxy.cgi.
> 
> Now it turns out that Geoserver will only accept the request if I change
> proxy.cgi from (note the lowercase type):
> 
> headers = {"Content-Type": os.environ["CONTENT_TYPE"]}
> 
> to:
> 
> headers = {"Content-type": os.environ["CONTENT_TYPE"]}
> 
> Where is this issue caused? Geoserver is running on Tomcat. Content-Type
> seems the correct notation to me.
> 
> The error Geoserver gives me when using the former is:
> 
> <ows:ExceptionText>Could not determine geoserver request from http request
> org.apache.catalina.connector.RequestFacade at 1eb9bc0f</ows:ExceptionText>

Hum, look like a GeoServer issue to me, http header parsing should
not be case sensitive (I believe, haven't really checked).
Justin, this is in the dispatcher. Opinions?
Cheers
Andrea



More information about the Users mailing list