Skip to content

Commit 10ab8cb

Browse files
committed
Empty port value for default.
1 parent d3623c9 commit 10ab8cb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export default {
3232
const url = new URL(request.url);
3333

3434
// Redirect HTTP to HTTPS
35-
if (url.protocol === "http:" && url.port === "80") {
35+
if (url.protocol === "http:" && url.port === "") {
3636
url.protocol = "https:";
3737
return new Response(null, {
3838
status: 301,

0 commit comments

Comments
 (0)