summaryrefslogtreecommitdiff
path: root/tools/node_http_proxy.js
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-11-14 05:42:34 +1100
committerRy Dahl <ry@tinyclouds.org>2019-11-13 13:42:34 -0500
commit9837d324a7c3f5e1c850dadabfd670edad4aa85b (patch)
treea81de8e9e15f64edd2ccb6e30a351ca3b2305035 /tools/node_http_proxy.js
parent279191ad9447c66fe1278589a7be242d035bb68b (diff)
Update to TypeScript 3.7 (#3275)
and update to prettier 1.19 Also, update `assert()` and remove not null assertions where possibly in `cli`. Closes #3273
Diffstat (limited to 'tools/node_http_proxy.js')
-rw-r--r--tools/node_http_proxy.js10
1 files changed, 2 insertions, 8 deletions
diff --git a/tools/node_http_proxy.js b/tools/node_http_proxy.js
index 75dd5a371..58ba3f930 100644
--- a/tools/node_http_proxy.js
+++ b/tools/node_http_proxy.js
@@ -14,15 +14,9 @@ http
const proxy = http.request(options, proxyRes => {
res.writeHead(proxyRes.statusCode, proxyRes.headers);
- proxyRes.pipe(
- res,
- { end: true }
- );
+ proxyRes.pipe(res, { end: true });
});
- req.pipe(
- proxy,
- { end: true }
- );
+ req.pipe(proxy, { end: true });
})
.listen(port);