Skip to content

Commit

Permalink
Merge pull request #1108 from weaveworks/1099-fix-pipes-prefix-check
Browse files Browse the repository at this point in the history
Fixes pipes working under a url path
  • Loading branch information
foot committed Mar 3, 2016
2 parents fa4ab48 + 28a9826 commit ce90680
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion client/app/scripts/utils/web-api-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ export function deletePipe(pipeId) {
}

export function getPipeStatus(pipeId) {
const url = `/api/pipe/${encodeURIComponent(pipeId)}/check`;
const url = `api/pipe/${encodeURIComponent(pipeId)}/check`;
reqwest({
method: 'GET',
url: url,
Expand Down
1 change: 1 addition & 0 deletions client/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ var proxyRules = new HttpProxyRules({
});

var pathProxy = httpProxy.createProxy({ws: true});
pathProxy.on('error', function(err) { console.error('path proxy error', err); });
var pathProxyPort = port + 1;
const proxyPathServer = http.createServer(function(req, res) {
var target = proxyRules.match(req);
Expand Down

0 comments on commit ce90680

Please sign in to comment.