This repository was archived by the owner on May 28, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
security/oauth1-server/src/main/java/org/glassfish/jersey/server/oauth1/internal Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 5555import javax .ws .rs .core .MediaType ;
5656import javax .ws .rs .core .MultivaluedMap ;
5757
58+ import org .glassfish .jersey .message .internal .MediaTypes ;
5859import org .glassfish .jersey .internal .util .collection .Value ;
5960import org .glassfish .jersey .internal .util .collection .Values ;
6061import org .glassfish .jersey .oauth1 .signature .OAuth1Request ;
@@ -80,7 +81,7 @@ public class OAuthServerRequest implements OAuth1Request {
8081 public MultivaluedMap <String , String > get () {
8182 MultivaluedMap <String , String > params = null ;
8283 final MediaType mediaType = context .getMediaType ();
83- if (mediaType != null && mediaType . equals ( MediaType .APPLICATION_FORM_URLENCODED_TYPE )) {
84+ if (mediaType != null && MediaTypes . typeEqual ( mediaType , MediaType .APPLICATION_FORM_URLENCODED_TYPE )) {
8485 final ContainerRequest jerseyRequest = (ContainerRequest ) context ;
8586 jerseyRequest .bufferEntity ();
8687 final Form form = jerseyRequest .readEntity (Form .class );
You can’t perform that action at this time.
0 commit comments