mirror of
https://github.com/oxen-io/session-android.git
synced 2025-01-11 23:33:39 +00:00
ignore case for the key "location" in headers
This commit is contained in:
parent
798d7e227f
commit
9f495b1ab8
@ -31,7 +31,7 @@ public class ContentProxySafetyInterceptor implements Interceptor {
|
||||
Response response = chain.proceed(chain.request());
|
||||
|
||||
if (response.isRedirect()) {
|
||||
if (isWhitelisted(response.header("Location"))) {
|
||||
if (isWhitelisted(response.header("location")) || isWhitelisted(response.header("Location"))) {
|
||||
return response;
|
||||
} else {
|
||||
Log.w(TAG, "Tried to redirect to a non-whitelisted domain!");
|
||||
|
Loading…
x
Reference in New Issue
Block a user