Add test for header with . characters
This commit is contained in:
parent
c93a8fb4ea
commit
1f46574efe
1 changed files with 4 additions and 0 deletions
|
@ -164,10 +164,14 @@ describe('webRequest module', function () {
|
||||||
it('receives details object', function (done) {
|
it('receives details object', function (done) {
|
||||||
ses.webRequest.onBeforeSendHeaders(function (details, callback) {
|
ses.webRequest.onBeforeSendHeaders(function (details, callback) {
|
||||||
assert.equal(typeof details.requestHeaders, 'object')
|
assert.equal(typeof details.requestHeaders, 'object')
|
||||||
|
assert.equal(details.requestHeaders['Foo.Bar'], 'baz')
|
||||||
callback({})
|
callback({})
|
||||||
})
|
})
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: defaultURL,
|
url: defaultURL,
|
||||||
|
headers: {
|
||||||
|
'Foo.Bar': 'baz'
|
||||||
|
},
|
||||||
success: function (data) {
|
success: function (data) {
|
||||||
assert.equal(data, '/')
|
assert.equal(data, '/')
|
||||||
done()
|
done()
|
||||||
|
|
Loading…
Reference in a new issue