Remove headers in case the setting is disabled after being enabled
This commit is contained in:
parent
6df7cdf331
commit
d66f5e4c17
@ -206,6 +206,9 @@ public class LightningView {
|
||||
if (mPreferences.getRemoveIdentifyingHeadersEnabled()) {
|
||||
mRequestHeaders.put(HEADER_REQUESTED_WITH, "");
|
||||
mRequestHeaders.put(HEADER_WAP_PROFILE, "");
|
||||
} else {
|
||||
mRequestHeaders.remove(HEADER_REQUESTED_WITH);
|
||||
mRequestHeaders.remove(HEADER_WAP_PROFILE);
|
||||
}
|
||||
|
||||
settings.setDefaultTextEncodingName(mPreferences.getTextEncoding());
|
||||
|
Loading…
x
Reference in New Issue
Block a user