Skip to content

Commit

Permalink
Disable redundant check of "Via" header
Browse files Browse the repository at this point in the history
  • Loading branch information
krlvm committed Jul 14, 2020
1 parent ea43e44 commit 5614ec1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
20 changes: 10 additions & 10 deletions app/src/main/java/ru/krlvm/powertunnel/filter/ProxyFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,16 +45,16 @@ public HttpResponse clientToProxyRequest(HttpObject httpObject) {
return null;
}

@Override
public HttpResponse proxyToServerRequest(HttpObject httpObject) {
if (httpObject instanceof HttpRequest) {
HttpRequest request = (HttpRequest) httpObject;
if(request.headers().contains("Via")) {
request.headers().remove("Via");
}
}
return null;
}
//@Override
//public HttpResponse proxyToServerRequest(HttpObject httpObject) {
// if (httpObject instanceof HttpRequest) {
// HttpRequest request = (HttpRequest) httpObject;
// if(request.headers().contains("Via")) {
// request.headers().remove("Via");
// }
// }
// return null;
//}

/*@Override
public HttpObject serverToProxyResponse(HttpObject httpObject) {
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-pl/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
<string name="specified_dns_provider">Określony dostawca DNS</string>

<string-array name="pref_theme">
<item>Auto (preferencje systemowe)</item>
<item>Auto</item>
<item>Włączone</item>
<item>Wyłączone</item>
<item>W trybie oszczędzania baterii</item>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values-ru/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
<string name="specified_dns_provider">Указанный поставщик DNS</string>

<string-array name="pref_theme">
<item>Автоматически (системная настройка)</item>
<item>Автоматически</item>
<item>Включена</item>
<item>Выключена</item>
<item>В режиме энергосбережения</item>
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</string-array>

<string-array name="pref_theme">
<item>Auto (system preference)</item>
<item>Auto</item>
<item>Enabled</item>
<item>Disabled</item>
<item>In Battery Saver mode</item>
Expand Down

0 comments on commit 5614ec1

Please sign in to comment.