gitlab-fetch
Advanced tools
Comparing version 1.1.0-dev.13831620 to 1.1.0-dev.13850281
@@ -11,2 +11,7 @@ # Changelog | ||
## 1.0.1 | ||
* Fix `RepositoryApi#getFileContent`. | ||
* Handle `text/plain` responses. | ||
* Fix parsing of `Content-Length` header. | ||
## 1.0.0 | ||
@@ -13,0 +18,0 @@ * Fix name of `ListProjectParams#order_by` parameter (was `#orderBy`) |
@@ -59,6 +59,7 @@ "use strict"; | ||
} | ||
else if (response.size === 0) { | ||
const contentSize = parseInt(response.headers.get('Content-Length'), 10) || 0; | ||
if (contentSize === 0) { | ||
return undefined; | ||
} | ||
else if (contentType === 'application/octet') { | ||
else if (contentType === 'application/octet' || contentType === 'text/plain') { | ||
return yield response.buffer(); | ||
@@ -65,0 +66,0 @@ } |
{ | ||
"name": "gitlab-fetch", | ||
"version": "1.1.0-dev.13831620", | ||
"version": "1.1.0-dev.13850281", | ||
"author": "Jay Anslow <jay@anslow.me.uk>", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90672
1673