Skip to content

Commit a235235

Browse files
authored
Merge pull request #11 from wearereasonablepeople/renan/fix-path-log
Fix the path displayed in the log
2 parents f731de7 + 53198c0 commit a235235

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/proxy-web.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const run = ({port, target, config = {}}) => {
2626
}
2727
const status = paintStatus(proxyRes.statusCode);
2828
const method = chalk.bold(req.method);
29-
log(`${status} [${method}] ${baseUrl.protocol}//${baseUrl.host}${req.url}`);
29+
log(`${status} [${method}] ${target}${req.url.replace(/^\//, '')}`);
3030
};
3131

3232
webProxy.on('proxyRes', web);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "warp-proxy",
3-
"version": "1.3.4",
3+
"version": "1.3.5",
44
"description": "Proxy requests or return mocks from local files instead",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)