Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Dec 7, 2024
1 parent 723591f commit cca519c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/urllib.options.allowH2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,13 @@ import urllib from '../src/index.js';

describe('urllib.options.allowH2.test.ts', () => {
it('should 200 on options.allowH2 = true', async () => {
const response = await urllib.request('https://registry.npmmirror.com', {
let response = await urllib.request('https://registry.npmmirror.com', {
allowH2: true,
dataType: 'json',
});
assert.equal(response.status, 200);

response = await urllib.curl('https://registry.npmmirror.com', {
allowH2: true,
dataType: 'json',
});
Expand Down

0 comments on commit cca519c

Please sign in to comment.