Permalink
Browse files

Quick workaround in order to parse POST requests with content-type ap…

…plication/x-www-form-urlencoded same as GET.
  • Loading branch information...
1 parent 6818282 commit 572aa67915f7fd171d43f2f1503db93abc75407d @mkofahl mkofahl committed with tbonfort Apr 4, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 mapows.c
  2. +1 −1 msautotest
View
@@ -95,7 +95,7 @@ static int msOWSPreParseRequest(cgiRequestObj *request,
owsRequestObj *ows_request)
{
/* decide if KVP or XML */
- if (request->type == MS_GET_REQUEST) {
+ if (request->type == MS_GET_REQUEST || (request->type == MS_POST_REQUEST && strcmp(request->contenttype, "application/x-www-form-urlencoded")==0)) {
int i;
/* parse KVP parameters service, version and request */
for (i = 0; i < request->NumParams; ++i) {

0 comments on commit 572aa67

Please sign in to comment.