fix error in check mediaType
This commit is contained in:
parent
116b2fed0c
commit
e19e7bef2d
1 changed files with 1 additions and 1 deletions
|
@ -60,7 +60,7 @@ public class HttpRequestImpl implements HttpRequest {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
MediaType mediaType = getHttpHeaders().getMediaType();
|
MediaType mediaType = getHttpHeaders().getMediaType();
|
||||||
if (mediaType.isCompatible(MediaType.valueOf("application/x-www-form-urlencoded"))) {
|
if (mediaType == null || !mediaType.isCompatible(MediaType.valueOf("application/x-www-form-urlencoded"))) {
|
||||||
return new MultivaluedHashMap<>();
|
return new MultivaluedHashMap<>();
|
||||||
}
|
}
|
||||||
return delegate.getDecodedFormParameters();
|
return delegate.getDecodedFormParameters();
|
||||||
|
|
Loading…
Reference in a new issue