Skip to content

Commit

Permalink
Fix typo in cloudflare worker example
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusher authored and kaedroho committed Jun 14, 2021
1 parent 899135f commit dae8ac2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ async function handleRequest(request) {
const url = new URL(request.url)

if (url.protocol == 'http:' && ENFORCE_HTTPS) {
url.protocol == 'https:';
url.protocol = 'https:';
return Response.redirect(url, 301);
}

Expand Down

0 comments on commit dae8ac2

Please sign in to comment.