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 55
55
import javax .ws .rs .core .MediaType ;
56
56
import javax .ws .rs .core .MultivaluedMap ;
57
57
58
+ import org .glassfish .jersey .message .internal .MediaTypes ;
58
59
import org .glassfish .jersey .internal .util .collection .Value ;
59
60
import org .glassfish .jersey .internal .util .collection .Values ;
60
61
import org .glassfish .jersey .oauth1 .signature .OAuth1Request ;
@@ -80,7 +81,7 @@ public class OAuthServerRequest implements OAuth1Request {
80
81
public MultivaluedMap <String , String > get () {
81
82
MultivaluedMap <String , String > params = null ;
82
83
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 )) {
84
85
final ContainerRequest jerseyRequest = (ContainerRequest ) context ;
85
86
jerseyRequest .bufferEntity ();
86
87
final Form form = jerseyRequest .readEntity (Form .class );
You can’t perform that action at this time.
0 commit comments