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 5913937 commit db78cd8Copy full SHA for db78cd8
packages/nuxt/src/runtime/plugins/sentry-cloudflare.server.ts
@@ -101,7 +101,8 @@ export const sentryCloudflareNitroPlugin =
101
logger.log("Nitro Cloudflare plugin did not detect a Cloudflare event type. Won't patch Cloudflare handler.");
102
return handlerTarget.apply(handlerThisArg, handlerArgs);
103
} else {
104
- const url = `${event.protocol}//${event.host}${pathname}`;
+ // Usually, the protocol already includes ":"
105
+ const url = `${event.protocol}${event.protocol.endsWith(':') ? '' : ':'}//${event.host}${pathname}`;
106
const request = new Request(url, {
107
method: event.method,
108
headers: event.headers,
0 commit comments