Skip to content

Commit

Permalink
Cleanup some unused headers.
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Jan 3, 2014
1 parent 9d91388 commit ebcceca
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 7 deletions.
Expand Up @@ -18,7 +18,6 @@
user = token()
client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/auth.py", false, user, 'pass')
client.setRequestHeader("x-user", user)
client.setRequestHeader("x-pass", 'pass')
assert_throws("NetworkError", function(){ client.send(null) })
assert_equals(client.responseText, '')
assert_equals(client.status, 0)
Expand Down
2 changes: 1 addition & 1 deletion XMLHttpRequest/send-authentication-basic-cors.htm
Expand Up @@ -24,7 +24,7 @@
assert_equals(client.responseText, '')
assert_equals(client.status, 0)
assert_equals(client.getResponseHeader('x-challenge'), null)
test.done()
test.done()
})
}
}
Expand Down
Expand Up @@ -35,7 +35,6 @@
var user = token();
client.open("GET", location.protocol+'//'+urlstart + "resources/auth4/auth.py", true)
client.setRequestHeader("x-user", user)
client.setRequestHeader("x-pass", 'pass')
client.setRequestHeader('Authorization', 'Basic ' + btoa(user + ":pass"))
client.onreadystatechange = function () {
if (client.readyState < 4) {return}
Expand All @@ -46,7 +45,7 @@
test.done()
} )
}
client.send(null)
client.send(null)
})
</script>
<p>Note: this test will only work as expected once per browsing session. Restart browser to re-test.</p>
Expand Down
Expand Up @@ -19,7 +19,6 @@
user = token()
client.open("GET", location.protocol+'//'+urlstart + "resources/auth2/auth.py", false)
client.setRequestHeader("x-user", user)
client.setRequestHeader("x-pass", 'pass')
client.setRequestHeader('Authorization', 'Basic ' + btoa(user + ":pass"))
client.onreadystatechange = function () {
if (client.readyState < 4) {return}
Expand Down
1 change: 0 additions & 1 deletion XMLHttpRequest/send-authentication-basic.htm
Expand Up @@ -17,7 +17,6 @@
user = token();
client.open("GET", location.protocol+'//'+urlstart + "resources/auth1/auth.py", false, user, 'pass')
client.setRequestHeader("x-user", user)
client.setRequestHeader("x-pass", 'pass')
client.send(null)
assert_equals(client.responseText, user + "\n" + 'pass')
assert_equals(client.getResponseHeader('x-challenge'), 'DID')
Expand Down
Expand Up @@ -33,7 +33,6 @@
}
client.open("GET", urlstart + "resources/authentication.py", false, user2, pass2)
client.setRequestHeader("x-user", userwin)
client.setRequestHeader("x-pass", passwin)
client.send(null)
assert_equals(client.responseText, (userwin||'') + "\n" + (passwin||''))

Expand Down

0 comments on commit ebcceca

Please sign in to comment.