Skip to content

Commit 12731d1

Browse files
committed
Fix GeoServer integration
1 parent 94faeec commit 12731d1

1 file changed

Lines changed: 3 additions & 12 deletions

File tree

geowebcache/rest/src/main/java/org/geowebcache/rest/controller/SeedController.java

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ public ResponseEntity doPost(HttpServletRequest request) {
119119
*
120120
* @param params Query parameters, including urlencoded form values
121121
*/
122-
@RequestMapping(
123-
value = "/seed/{layer:.+}",
124-
method = RequestMethod.POST,
125-
consumes = {MediaType.APPLICATION_FORM_URLENCODED_VALUE, MediaType.ALL_VALUE})
122+
@RequestMapping(value = "/seed/{layer:.+}", method = RequestMethod.POST)
126123
public ResponseEntity<?> doPost(
127124
HttpServletRequest request,
128125
InputStream inputStream,
@@ -146,10 +143,7 @@ public ResponseEntity<?> doPost(
146143
}
147144

148145
/** POST method for JSON seeding/truncating with path extension. */
149-
@RequestMapping(
150-
value = "/seed/{layer}.json",
151-
method = RequestMethod.POST,
152-
consumes = {MediaType.APPLICATION_JSON_VALUE})
146+
@RequestMapping(value = "/seed/{layer}.json", method = RequestMethod.POST)
153147
public ResponseEntity<?> seedOrTruncateWithJsonPayload(
154148
HttpServletRequest request, InputStream inputStream, @PathVariable(name = "layer") String layerName) {
155149

@@ -159,10 +153,7 @@ public ResponseEntity<?> seedOrTruncateWithJsonPayload(
159153
}
160154

161155
/** POST method for XML seeding/truncating with path extension. */
162-
@RequestMapping(
163-
value = "/seed/{layer}.xml",
164-
method = RequestMethod.POST,
165-
consumes = {MediaType.APPLICATION_XML_VALUE, MediaType.TEXT_XML_VALUE})
156+
@RequestMapping(value = "/seed/{layer}.xml", method = RequestMethod.POST)
166157
public ResponseEntity<?> seedOrTruncateWithXmlPayload(
167158
HttpServletRequest request, InputStream inputStream, @PathVariable(name = "layer") String layerName) {
168159

0 commit comments

Comments
 (0)