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 055af1b commit 041a3b2
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 @@ -4,7 +4,8 @@ export async function onRequest(context) {
const params = context.params
const datas = context.data
const request = context.request
return new Response(JSON.stringify([datas,params,functionPath,request], null, 2),{headers:{'content-type':'application/json;charset=UTF-8'}});
const method = request.method
return new Response(JSON.stringify([datas,params,method,request], 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 041a3b2

Please sign in to comment.