mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 13:59:16 +01:00
fix(api): 🐛 Correctly return empty body without content-type headers, when returning empty responses
This commit is contained in:
parent
2743528727
commit
06376cf58a
15 changed files with 18 additions and 18 deletions
|
|
@ -76,7 +76,7 @@ export default apiRoute((app) =>
|
|||
}
|
||||
|
||||
// Can't directly copy file into Response because this crashes Bun for now
|
||||
return context.newResponse(buffer, 200, {
|
||||
return context.body(buffer, 200, {
|
||||
"Content-Type": file.type || "application/octet-stream",
|
||||
"Content-Length": `${file.size - start}`,
|
||||
"Content-Range": `bytes ${start}-${end}/${file.size}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue