Skip to content

Commit

Permalink
Merge pull request #437 from tbroyer/RESTEASY-1004
Browse files Browse the repository at this point in the history
[RESTEASY-1004] FormUrlEncodedProvider never reads 'null' anymore
  • Loading branch information
patriot1burke committed Feb 18, 2014
2 parents 086c2ba + 6c7315e commit 3ddbc5b
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -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 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; boolean encoded = FindAnnotation.findAnnotation(annotations, Encoded.class) != null;
if (encoded) return parseForm(entityStream); if (encoded) return parseForm(entityStream);
else return Encode.decode(parseForm(entityStream)); else return Encode.decode(parseForm(entityStream));
Expand Down

0 comments on commit 3ddbc5b

Please sign in to comment.