Browse Source

Remove headers in case the setting is disabled after being enabled

master
Anthony Restaino 9 years ago
parent
commit
d66f5e4c17
  1. 3
      app/src/main/java/acr/browser/lightning/view/LightningView.java

3
app/src/main/java/acr/browser/lightning/view/LightningView.java

@ -206,6 +206,9 @@ public class LightningView { @@ -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…
Cancel
Save