Skip to content

Commit

Permalink
Support colon (#11)
Browse files Browse the repository at this point in the history
* Support colon

* Format update

---------

Co-authored-by: Gergely Danyi <[email protected]>
  • Loading branch information
gergas3 and gergas3 authored Aug 8, 2023
1 parent 9666061 commit 8114865
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion server/auth.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { PublicKeyGetter } from "../types";
import * as jose from "jose";
import pinoLogger from "pino";

import { PublicKeyGetter } from "../types";

const AUTH_PATTERN = /Bearer (.*)/;
const ALG = "ES384";

Expand Down
2 changes: 1 addition & 1 deletion server/proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { ForwardedRequest, IncomingRequest } from "../types";

const logger = createLogger({ name: "proxy" });

const PATH = /\/client\/([a-zA-Z0-9-]+)(.*)/;
const PATH = /\/client\/([^/]+)(.*)/;
const PATH_REGEXP = pathToRegexp(PATH);

export const httpProxyApp = (
Expand Down

0 comments on commit 8114865

Please sign in to comment.