Remove unnecessary explicit port setting
This commit is contained in:
parent
f641aa0470
commit
24e1aaefd1
1 changed files with 0 additions and 3 deletions
|
|
@ -16,9 +16,6 @@ export type TransportOptions = {
|
|||
function createSSETransport(options: TransportOptions): Transport {
|
||||
const baseUrl = new URL(options.url ?? "");
|
||||
const sseUrl = new URL("/sse", baseUrl);
|
||||
if (baseUrl.port) {
|
||||
sseUrl.port = baseUrl.port;
|
||||
}
|
||||
|
||||
return new SSEClientTransport(sseUrl);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue