Skip to content

Commit 8732dc3

Browse files
pyropyjuliangruber
andauthored
Update lib/request.js
Co-authored-by: Julian Gruber <[email protected]>
1 parent f6c88ac commit 8732dc3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/request.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export const formatRequestData = (request, response = {}, env) => {
22
const url = new URL(request.url);
33
const timestamp = Date.now();
4-
const originResponse = response || {};
54
const apiKey = request.headers.get('api-key') || url.searchParams.get('api-key') || (request.headers.get('Authorization')?.startsWith('Bearer ') ? request.headers.get('Authorization').substring(7) : 'unknown');
65
const cfCache = response?.headers.get('CF-Cache-Status') ?? 'miss'
76
const formattedUrl = url.toString().replaceAll('=', '\\=');

0 commit comments

Comments
 (0)