rollback path preservation fix
This commit is contained in:
parent
6be4c60c45
commit
82f5f70924
1 changed files with 0 additions and 70 deletions
|
|
@ -143,12 +143,7 @@ export class SSEClientTransport implements Transport {
|
|||
const messageEvent = event as MessageEvent;
|
||||
|
||||
try {
|
||||
// Use the original URL as the base to resolve the received endpoint
|
||||
this._endpoint = new URL(messageEvent.data, this._url);
|
||||
|
||||
// If the original URL had a custom path, preserve it in the endpoint URL
|
||||
this._endpoint.pathname = this._url.pathname;
|
||||
|
||||
if (this._endpoint.origin !== this._url.origin) {
|
||||
throw new Error(
|
||||
`Endpoint origin does not match connection origin: ${this._endpoint.origin}`,
|
||||
|
|
|
|||
Loading…
Reference in a new issue