Skip to content

Commit

Permalink
feat: allowing user-agent header from node-module, removing from call…
Browse files Browse the repository at this point in the history
…er instead
  • Loading branch information
Varun0157 committed Jun 16, 2024
1 parent f199be4 commit bfd4b6b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/constructCurl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ export function getCurlRequest(request: RequestSpec): string {
// headers
if (request.httpRequest.headers !== undefined) {
for (const header in request.httpRequest.headers) {
if (header === "user-agent") continue;
curl += ` -H '${replaceSingleQuotes(`${header}: ${request.httpRequest.headers[header]}`)}'`;
}
}
Expand Down

0 comments on commit bfd4b6b

Please sign in to comment.