We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29c116f commit 9e0fc35Copy full SHA for 9e0fc35
2 files changed
package.json
@@ -1,6 +1,6 @@
1
{
2
"name": "nodegistry",
3
- "version": "1.2.3",
+ "version": "1.2.4",
4
"description": "Docker Registry Remote API module.",
5
"main": "index.js",
6
"repository": "git@github.com:codefresh-io/nodegistry.git",
src/lib/Modem.js
@@ -110,7 +110,7 @@ exports.RegistryModem = class {
110
});
111
}))
112
.then(([response, body]) => {
113
- if (response.statusCode === 307) {
+ if ([302, 307].includes(response.statusCode)) {
114
return this.handleRedirect(response.headers.location);
115
}
116
return this._promise.resolve([response, body]);
0 commit comments