We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c918015 commit f9c28f8Copy full SHA for f9c28f8
1 file changed
lib/http-incoming.js
@@ -7,7 +7,7 @@ const urlFromRequest = (request) => {
7
const protocol = request?.protocol || 'http';
8
const host = request?.headers?.host || 'localhost';
9
const url = request?.url || '';
10
- return new URL(url, `${protocol.replace(/:/, '')}://${host}`);
+ return new URL(url, `${protocol.replace(':', '')}://${host}`);
11
};
12
13
/**
0 commit comments