Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
xingsy97 committed Dec 13, 2024
1 parent 7246224 commit a921b13
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions sdk/server-proxies/src/InprocessServerProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,12 +213,10 @@ export class InprocessServerProxy implements WebPubSubServiceCaller {
return undefined;
}
return function (request, abortSignal) {
const req = {
...buildRequest(request),
baseUrl: "",
path: new URL(request.Url).pathname,
} as Request;
const req = buildRequest(request) as Request;
const res = new ContentInterpreteResponse(req);
req.baseUrl = "";
(req as any).path = (new URL(request.Url)).pathname;
const responseReader = readResponse(res, abortSignal);
handler(req, res as unknown as Response, (err?: any) => {
// end the response
Expand Down

0 comments on commit a921b13

Please sign in to comment.