Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and Hebilicious committed Jul 2, 2023
1 parent 003f85c commit 4712c73
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/runtime/entries/cloudflare.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import { splitCookiesString } from "set-cookie-parser";
import { requestHasBody } from "../utils";
import { nitroApp } from "#internal/nitro/app";
import { useRuntimeConfig } from "#internal/nitro";
import { getPublicAssetMeta, isPublicAssetURL } from "#internal/nitro/virtual/public-assets";
import {
getPublicAssetMeta,
isPublicAssetURL,
} from "#internal/nitro/virtual/public-assets";

addEventListener("fetch", (event: any) => {
event.respondWith(handleEvent(event));
Expand All @@ -17,9 +20,7 @@ addEventListener("fetch", (event: any) => {
async function handleEvent(event: FetchEvent) {
const url = new URL(event.request.url);
const id = decodeURIComponent(
withLeadingSlash(
withoutTrailingSlash(url.pathname)
)
withLeadingSlash(withoutTrailingSlash(url.pathname))
);

// Fetch public assets from KV only
Expand All @@ -30,7 +31,6 @@ async function handleEvent(event: FetchEvent) {
});
}


let body;
if (requestHasBody(event.request)) {
body = Buffer.from(await event.request.arrayBuffer());
Expand Down

0 comments on commit 4712c73

Please sign in to comment.