diff options
author | Ry Dahl <ry@tinyclouds.org> | 2020-01-09 11:37:01 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-09 11:37:01 -0700 |
commit | d492c5abe3c7c0716b9695c8a40d0256569d2338 (patch) | |
tree | 15d5d901d3dac3bedefd7258d29a177a2f6ae9a0 /tools/deno_http_proxy.ts | |
parent | c50cab90a05d271013f741768d70c1eda6ef9a10 (diff) |
feat: Deno.args now does not include script (#3628)
Previously Deno.args was ["script.js", "arg1", "arg2"]
Now it is just ["arg1", "arg2"]
BREAKING CHANGE
Diffstat (limited to 'tools/deno_http_proxy.ts')
-rw-r--r-- | tools/deno_http_proxy.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/deno_http_proxy.ts b/tools/deno_http_proxy.ts index 75ea4b241..589a14338 100644 --- a/tools/deno_http_proxy.ts +++ b/tools/deno_http_proxy.ts @@ -1,8 +1,8 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. import { serve, ServerRequest } from "../std/http/server.ts"; -const addr = Deno.args[1] || "127.0.0.1:4500"; -const originAddr = Deno.args[2] || "127.0.0.1:4501"; +const addr = Deno.args[0] || "127.0.0.1:4500"; +const originAddr = Deno.args[1] || "127.0.0.1:4501"; const server = serve(addr); async function proxyRequest(req: ServerRequest): Promise<void> { |