From 1f46574efe171123e9438de474f4a1181a3f5b9e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Tue, 16 Aug 2016 09:08:36 -0700 Subject: [PATCH] Add test for header with . characters --- spec/api-web-request-spec.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/api-web-request-spec.js b/spec/api-web-request-spec.js index 7b1c1556ecbc..9efbb5665875 100644 --- a/spec/api-web-request-spec.js +++ b/spec/api-web-request-spec.js @@ -164,10 +164,14 @@ describe('webRequest module', function () { it('receives details object', function (done) { ses.webRequest.onBeforeSendHeaders(function (details, callback) { assert.equal(typeof details.requestHeaders, 'object') + assert.equal(details.requestHeaders['Foo.Bar'], 'baz') callback({}) }) $.ajax({ url: defaultURL, + headers: { + 'Foo.Bar': 'baz' + }, success: function (data) { assert.equal(data, '/') done()