Skip to content

Commit

Permalink
Merge pull request #140 from jaegertracing/issue-138-encode-svc-names
Browse files Browse the repository at this point in the history
Encode service names in API calls
  • Loading branch information
tiffon authored Dec 19, 2017
2 parents cbc3025 + 5ea033b commit 9f6a804
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/jaeger.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ const JaegerAPI = {
return getJSON(`${this.apiRoot}services`);
},
fetchServiceOperations(serviceName) {
return getJSON(`${this.apiRoot}services/${serviceName}/operations`);
return getJSON(`${this.apiRoot}services/${encodeURIComponent(serviceName)}/operations`);
},
fetchDependencies(endTs = new Date().getTime(), lookback = DEFAULT_DEPENDENCY_LOOKBACK) {
return getJSON(`${this.apiRoot}dependencies`, { endTs, lookback });
Expand Down

0 comments on commit 9f6a804

Please sign in to comment.