Comparing version 1.2.2 to 1.2.3
@@ -1,1 +0,1 @@ | ||
export declare const version = "1.2.2"; | ||
export declare const version = "1.2.3"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = "1.2.2"; | ||
exports.version = "1.2.3"; | ||
//# sourceMappingURL=version.js.map |
@@ -20,3 +20,4 @@ "use strict"; | ||
const contentLength = headers.get(HTTP2_HEADER_CONTENT_LENGTH); | ||
const length = contentLength == null | ||
const contentEncoding = headers.get(HTTP2_HEADER_CONTENT_ENCODING); | ||
const length = (contentLength == null || contentEncoding != null) | ||
? null | ||
@@ -23,0 +24,0 @@ : parseInt(contentLength, 10); |
@@ -82,3 +82,8 @@ "use strict"; | ||
}); | ||
it("should be possible to GET gzip data", async () => { | ||
const response = await __1.fetch("https://nghttp2.org/httpbin/gzip"); | ||
const data = await response.json(); | ||
chai_1.expect(data).to.deep.include({ gzipped: true, method: "GET" }); | ||
}); | ||
}); | ||
//# sourceMappingURL=nghttp2.org.js.map |
{ | ||
"name": "fetch-h2", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "HTTP/2-only Fetch API client for Node.js", | ||
@@ -5,0 +5,0 @@ "author": "Gustaf Räntilä", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
224052
2804