Skip to content

Commit

Permalink
'update'
Browse files Browse the repository at this point in the history
  • Loading branch information
youfeed committed Dec 6, 2023
1 parent a1bfdeb commit ebcbdd2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/drive/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ export async function onRequest(context) {
const request = context.request
const method = request.method
const body = await request.body
return new Response(JSON.stringify([body,params,method,request], null, 2),{headers:{'content-type':'application/json;charset=UTF-8'}});
const contentType = headers.get("content-type") || "";
return new Response(JSON.stringify([body,params,method,request,contentType], null, 2),{headers:{'content-type':'application/json;charset=UTF-8'}});
// {request,env}
const secret = env.secret;
const signature = request.headers.get("Signature");
Expand Down

0 comments on commit ebcbdd2

Please sign in to comment.