We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5539519 commit 90e8714Copy full SHA for 90e8714
src/server.ts
@@ -189,7 +189,8 @@ export abstract class Server {
189
}
190
191
protected withBase(request: http.IncomingMessage, path: string): string {
192
- return `${this.protocol}://${request.headers.host}${this.options.basePath}${path}`;
+ const split = request.url ? request.url.split("?", 2) : [];
193
+ return `${this.protocol}://${request.headers.host}${this.options.basePath}${path}${split.length === 2 ? `?${split[1]}` : ""}`;
194
195
196
private onRequest = async (request: http.IncomingMessage, response: http.ServerResponse): Promise<void> => {
0 commit comments