Skip to content

Commit cb0c422

Browse files
committed
fix[frontend]: incorrect encoding capitalization
1 parent ca328cf commit cb0c422

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

frontend/pages/DisplayPaste.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import "../style.css"
1818
import "../styles/highlight-theme-light.css"
1919
import "../styles/highlight-theme-dark.css"
2020

21-
const utf8CompatibleEncodings = ["utf-8", "ASCII", "ISO-8859-1"]
21+
const utf8CompatibleEncodings = ["UTF-8", "ASCII", "ISO-8859-1"]
2222

2323
export function DisplayPaste() {
2424
const [pasteFile, setPasteFile] = useState<File | undefined>(undefined)

worker/handlers/handleWrite.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,6 @@ export async function handlePostOrPut(
9090

9191
const contentType = request.headers.get("Content-Type") || ""
9292

93-
// TODO: support multipart upload (https://developers.cloudflare.com/r2/api/workers/workers-multipart-usage/)
94-
9593
// parse formdata
9694
if (!contentType.includes("multipart/form-data")) {
9795
throw new WorkerError(400, `bad usage, please use 'multipart/form-data' instead of ${contentType}`)

0 commit comments

Comments
 (0)