We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c8cfff9 commit 7d42f31Copy full SHA for 7d42f31
src/com/loopj/android/http/BinaryHttpResponseHandler.java
@@ -19,6 +19,7 @@
19
package com.loopj.android.http;
20
21
import java.io.IOException;
22
+import java.util.regex.Pattern;
23
24
import org.apache.http.Header;
25
import org.apache.http.HttpEntity;
@@ -168,7 +169,7 @@ void sendResponseMessage(HttpResponse response) {
168
169
Header contentTypeHeader = contentTypeHeaders[0];
170
boolean foundAllowedContentType = false;
171
for(String anAllowedContentType : mAllowedContentTypes) {
- if(anAllowedContentType.equals(contentTypeHeader.getValue())) {
172
+ if(Pattern.matches(anAllowedContentType, contentTypeHeader.getValue())) {
173
foundAllowedContentType = true;
174
}
175
0 commit comments