Skip to content
Browse files

Merge pull request #437 from tbroyer/RESTEASY-1004

[RESTEASY-1004] FormUrlEncodedProvider never reads 'null' anymore
  • Loading branch information...
2 parents 086c2ba + 6c7315e commit 3ddbc5b0237b5b2b1209cc705d1444d96de2aac0 @patriot1burke patriot1burke committed Feb 18, 2014
2 ...easy-jaxrs/src/main/java/org/jboss/resteasy/plugins/providers/
@@ -58,7 +58,7 @@ public boolean isReadable(Class<?> type, Type genericType, Annotation[] annotati
public MultivaluedMap readFrom(Class<MultivaluedMap> type, Type genericType, Annotation[] annotations, MediaType mediaType, MultivaluedMap<String, String> httpHeaders, InputStream entityStream) throws IOException
- if (NoContent.isContentLengthZero(httpHeaders)) return null;
+ if (NoContent.isContentLengthZero(httpHeaders)) return new MultivaluedMapImpl<String, String>();
boolean encoded = FindAnnotation.findAnnotation(annotations, Encoded.class) != null;
if (encoded) return parseForm(entityStream);
else return Encode.decode(parseForm(entityStream));

0 comments on commit 3ddbc5b

Please sign in to comment.
Something went wrong with that request. Please try again.