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 d3623c9 commit 10ab8cbCopy full SHA for 10ab8cb
src/index.ts
@@ -32,7 +32,7 @@ export default {
32
const url = new URL(request.url);
33
34
// Redirect HTTP to HTTPS
35
- if (url.protocol === "http:" && url.port === "80") {
+ if (url.protocol === "http:" && url.port === "") {
36
url.protocol = "https:";
37
return new Response(null, {
38
status: 301,
0 commit comments