Comparing version 13.0.2 to 13.1.0
@@ -48,2 +48,3 @@ /** section: github | ||
var statusCodes = { | ||
304: 'Not Modified', // See PR #673 (https://github.com/octokit/node-github/pull/673) | ||
400: 'Bad Request', | ||
@@ -93,3 +94,2 @@ 401: 'Unauthorized', | ||
// XXX: Remove? | ||
for (var status in statusCodes) { | ||
@@ -96,0 +96,0 @@ var defaultMsg = statusCodes[status] |
@@ -742,3 +742,3 @@ 'use strict' | ||
res.on('end', function () { | ||
if (res.statusCode >= 301 && res.statusCode <= 307) { | ||
if (res.statusCode !== 304 && res.statusCode >= 301 && res.statusCode <= 307) { | ||
options.path = Url.parse(res.headers.location, true).path | ||
@@ -749,3 +749,3 @@ httpSendRequest() | ||
if (res.statusCode >= 400 || res.statusCode < 10) { | ||
if (res.statusCode === 304 || res.statusCode >= 400 || res.statusCode < 10) { | ||
callCallback(new error.HttpError(data, res.statusCode, res.headers)) | ||
@@ -752,0 +752,0 @@ } else { |
{ | ||
"name": "github", | ||
"version": "13.0.2", | ||
"version": "13.1.0", | ||
"description": "GitHub REST API client for Node.js", | ||
@@ -5,0 +5,0 @@ "author": "Mike de Boer <info@mikedeboer.nl>", |
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
542401