Fix AuthInterceptor
This commit is contained in:
parent
a5479595c7
commit
3ffdb2c220
@ -55,7 +55,7 @@ public class AuthInterceptor implements Interceptor {
|
|||||||
.protocol(Protocol.HTTP_1_1)
|
.protocol(Protocol.HTTP_1_1)
|
||||||
.code(401)
|
.code(401)
|
||||||
.message("Unauthorized")
|
.message("Unauthorized")
|
||||||
.body(ResponseBody.create(new byte[0], null))
|
.body(ResponseBody.create(okhttp3.MediaType.get("application/json"), new byte[0]))
|
||||||
.build();
|
.build();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
return chain.proceed(originalRequest);
|
return chain.proceed(originalRequest);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user