Skip to content

Commit 22780b5

Browse files
committed
Implemented BinarySample
1 parent 085db38 commit 22780b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

sample/src/main/java/com/loopj/android/http/sample/BinarySample.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ public void onStart() {
3838
clearOutputs();
3939
}
4040

41+
@Override
42+
public String[] getAllowedContentTypes() {
43+
// Allowing all data for debug purposes
44+
return new String[]{".*"};
45+
}
46+
4147
public void onSuccess(int statusCode, Header[] headers, byte[] binaryData) {
4248
debugStatusCode(LOG_TAG, statusCode);
4349
debugHeaders(LOG_TAG, headers);

0 commit comments

Comments
 (0)