mirror of
https://github.com/trycua/computer.git
synced 2026-02-17 20:10:07 -06:00
handler for 204
This commit is contained in:
@@ -17,6 +17,11 @@ export async function GET(
|
||||
},
|
||||
});
|
||||
|
||||
// Handle 204 No Content responses
|
||||
if (response.status === 204) {
|
||||
return new NextResponse(null, { status: 204 });
|
||||
}
|
||||
|
||||
const data = await response.arrayBuffer();
|
||||
return new NextResponse(data, {
|
||||
status: response.status,
|
||||
@@ -51,6 +56,11 @@ export async function POST(
|
||||
body,
|
||||
});
|
||||
|
||||
// Handle 204 No Content responses
|
||||
if (response.status === 204) {
|
||||
return new NextResponse(null, { status: 204 });
|
||||
}
|
||||
|
||||
const data = await response.arrayBuffer();
|
||||
return new NextResponse(data, {
|
||||
status: response.status,
|
||||
|
||||
Reference in New Issue
Block a user