|
Cesar Martinez created an issue |
Issue Type: |
|
---|---|
Affects Versions: |
2.8.1 |
Assignee: |
Unassigned |
Created: |
04/Feb/16 12:16 PM |
Environment: |
Linux Mint 17 Qiana, Tomcat 7.0.52-1ubuntu0.3, |
Priority: |
|
Reporter: |
If we upload a coverage using the REST API, the response is always an XML regardless the Accept header, so it is impossible to get a JSON response: curl -v -u admin:geoserver -XPUT -H “Accept: application/json” -H “Content-type: image/tiff” --data-binary @mytif.tif http://localhost:8080/geoserver/rest/workspaces/copernicus_nicolaus/coveragestores/mycoverage/file.geotiff Response: The ‘Accept’ header should be honoured according to Geoserver documentation: “In a POST or PUT operation, the format of content being sent to the server is specified with the Content-type header. For example, to send a representation in XML, use “Content-type: text/xml” or “Content-type: application/xml”. As with GET requests, the representation of the content returned from the server is specified by the Accept header or by the format.” |
This message was sent by Atlassian JIRA (v7.1.0-OD-05-006#71001-sha1:081cc1a) |
|