fix issue 1919
This commit is contained in:
parent
4d7e4db29d
commit
62bc8a5481
4 changed files with 30 additions and 5 deletions
|
|
@ -72,6 +72,14 @@ o.spec("xhrMock", function() {
|
|||
}
|
||||
xhr.send("a=b")
|
||||
})
|
||||
o("Setting a header twice merges the header", function() {
|
||||
// Source: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader
|
||||
var xhr = new $window.XMLHttpRequest()
|
||||
xhr.open("POST", "/test")
|
||||
xhr.setRequestHeader("Content-Type", "foo")
|
||||
xhr.setRequestHeader("Content-Type", "bar")
|
||||
o(xhr.getRequestHeader("Content-Type")).equals("foo, bar")
|
||||
})
|
||||
})
|
||||
o.spec("jsonp", function() {
|
||||
o("works", function(done) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue