Skip to content

Commit be5514b

Browse files
committed
Merge pull request #38 from eduardolundgren/master
Issue not found error on requests
2 parents e2c2fec + 037aa43 commit be5514b

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/jira.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ var JiraApi = exports.JiraApi = function(protocol, host, port, username, passwor
155155
port: this.port,
156156
pathname: basePath + this.apiVersion + pathname
157157
});
158-
return uri;
158+
return decodeURIComponent(uri);
159159
};
160160

161161

spec/jira.spec.coffee

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,13 @@ describe "Node Jira Tests", ->
66
makeUrl = (path, altBase) ->
77
base = 'rest/api/2/'
88
base = 'rest/greenhopper/2/' if altBase?
9-
url.format
9+
decodeURIComponent(
10+
url.format
1011
protocol: 'http:'
1112
hostname: 'localhost'
1213
auth: 'test:test'
1314
port: 80
14-
pathname: "#{base}#{path}"
15+
pathname: "#{base}#{path}")
1516

1617

1718
beforeEach ->

0 commit comments

Comments
 (0)