Skip to content

Commit

Permalink
Pass string instead of URL to Request constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
honzasp committed Aug 15, 2023
1 parent d3f93e0 commit 42e5297
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class HttpStream extends Stream implements SqlOwner {
headers.set("authorization", `Bearer ${this.#jwt}`);
}

return new Request(url, {
return new Request(url.toString(), {
method: "POST",
headers,
body: JSON.stringify(requestBody),
Expand Down

0 comments on commit 42e5297

Please sign in to comment.