diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-17 16:12:49 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-17 16:12:49 -0400 |
commit | 1693e9daf1657c1fc45afa3fa14f0a0df0e01e13 (patch) | |
tree | c2e6fef9962d04998460279e7fd92d852bfe312c /src/server/server_Initialization.ts | |
parent | 43580a656b88b287f3c62528fb51513e0ee65f6e (diff) |
fixes for typing url in web box. fixes for dropping imags from proxied document. possible fix for updateing image width/height
Diffstat (limited to 'src/server/server_Initialization.ts')
-rw-r--r-- | src/server/server_Initialization.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/server_Initialization.ts b/src/server/server_Initialization.ts index 76cb22521..7b2228831 100644 --- a/src/server/server_Initialization.ts +++ b/src/server/server_Initialization.ts @@ -129,7 +129,7 @@ function registerCorsProxy(server: express.Express) { // if the referer is a cors page and the cors() route (I think) redirected to /corsProxy/<path> and the requested url path was relative, // then we redirect again to the cors referer and just add the relative path. if (!requrl.startsWith("http") && req.originalUrl.startsWith("/corsProxy") && referer?.includes("corsProxy")) { - res.redirect(referer + requrl); + res.redirect(referer + (referer.endsWith("/") ? "" : "/") + requrl); } else { req.pipe(request(requrl)).on("response", res => { |