Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from portante/migrate-pr-162
Browse files Browse the repository at this point in the history
Remove the host header before forwarding
  • Loading branch information
portante authored Apr 12, 2023
2 parents 758a13e + 5093aec commit 9bc254d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class Client {

delete data.query

// Remove the host header, leaving it causes issues with SNI and TLS verification
delete data.host

const req = superagent.post(url.format(target)).send(data.body)

delete data.body
Expand Down

0 comments on commit 9bc254d

Please sign in to comment.