Skip to content

Commit 4cee928

Browse files
committed
Modify JsonServiceClient to call ResponseFilters
1 parent 06636d7 commit 4cee928

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/AndroidClient/client/src/main/java/net/servicestack/client/JsonServiceClient.java

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,14 @@ public <TResponse> TResponse send(HttpURLConnection req, Object responseClass) {
232232
throw ex;
233233
}
234234

235-
if (RequestFilter != null) {
236-
RequestFilter.exec(req);
237-
}
235+
InputStream is = req.getInputStream();
238236

239-
if (GlobalRequestFilter != null) {
240-
GlobalRequestFilter.exec(req);
237+
if (ResponseFilter != null) {
238+
ResponseFilter.exec(req);
239+
}
240+
if (GlobalResponseFilter != null) {
241+
GlobalResponseFilter.exec(req);
241242
}
242-
243-
InputStream is = req.getInputStream();
244243

245244
if (Log.isDebugEnabled()) {
246245
String json = Utils.readToEnd(is, UTF8.name());

0 commit comments

Comments
 (0)