hmt 3 years ago
parent
commit
e03a529ea9
2 changed files with 3 additions and 2 deletions
  1. 1 1
      bbb.ts
  2. 2 1
      deps.ts

+ 1 - 1
bbb.ts

@@ -32,7 +32,7 @@ export class BBB {
   // write new query for target bbb server
   rewritten_query = (server: server) => {
     const checksum_outgoing = this.generate_checksum(server.secret)
-    return `${server.host}${this.url.replace(this.checksum_incoming, checksum_outgoing)}`
+    return new URL(`${server.host}${this.url.replace(this.checksum_incoming, checksum_outgoing)}`)
   }
   // check if request is autheticated with correct checksum
   authenticated = (secret: string) => {

+ 2 - 1
deps.ts

@@ -6,7 +6,8 @@ export {
   opine,
   Router,
 } from "https://deno.land/x/opine@1.3.2/mod.ts";
-export { proxy } from "https://deno.land/x/opineHttpProxy@2.5.0/mod.ts";
+// export { proxy } from "https://deno.land/x/opineHttpProxy@2.5.0/mod.ts";
+export { proxy } from "https://raw.githubusercontent.com/hmt/opine-http-proxy/main/mod.ts";
 export type {
   ErrorRequestHandler,
   Request,