Fix AuthInterceptor

This commit is contained in:
Giuseppe Scorrano 2025-05-28 12:27:59 +02:00
parent a5479595c7
commit 3ffdb2c220

View File

@ -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);