Skip to content

Commit 6f2da38

Browse files
fpietrosantievilaliv3
authored andcommitted
Fix CheckTor javascript inclusion
1 parent aa33a15 commit 6f2da38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

misc/checktor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function redirectIfOnTor(url, test_url) {
1717

1818
xmlhttp.onreadystatechange=function() {
1919
if (xmlhttp.readyState==4 && xmlhttp.status==200) {
20-
if (xmlhttp.getResponseHeader("x-check-tor")) {
20+
if (xmlhttp.getResponseHeader("x-check-tor") === "true") {
2121
window.location.href = url;
2222
}
2323
}

0 commit comments

Comments
 (0)