Skip to content

Commit 35d3088

Browse files
committed
Check for 200 *and* 201 when creating remote issue.
1 parent 23b83ef commit 35d3088

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jira.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -668,7 +668,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor
668668
return;
669669
}
670670

671-
if (response.statusCode !== 201) {
671+
if ([200, 201].indexOf(response.statusCode) < 0) {
672672
callback(response.statusCode + ': Unable to connect to JIRA during request.');
673673
return;
674674
}

0 commit comments

Comments
 (0)