We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e0c9d5 commit a423019Copy full SHA for a423019
packages/fetch/test/headers.js
@@ -216,6 +216,19 @@ describe('Headers', () => {
216
expect(() => headers.append('', 'ok')).to.throw(TypeError);
217
});
218
219
+ it('should allow HTTP2 pseudo-headers', () => {
220
+ let headers = new Headers({':authority': 'something'});
221
+ headers.append(":method", "something else")
222
+
223
+ const result = [];
224
+ for (const pair of headers) {
225
+ result.push(pair);
226
+ }
227
228
+ expect(result).to.deep.equal([[':authority', 'something'], [':method', 'something else']]);
229
230
+ })
231
232
it('should ignore unsupported attributes while reading headers', () => {
233
const FakeHeader = function () { };
234
// Prototypes are currently ignored
0 commit comments