Skip to content

Commit

Permalink
should add agent before proxy to fetch (#241)
Browse files Browse the repository at this point in the history
Summary:
should add agent before proxy to fetch to respect proxy settings in ENV

Pull Request resolved: #241

Reviewed By: nishsinghal20

Differential Revision: D43472111

Pulled By: patapizza

fbshipit-source-id: a763ba82c819047af6c7a07000d32fe4abcd45a4
  • Loading branch information
tonywangcn authored and facebook-github-bot committed Feb 21, 2023
1 parent 948f228 commit 8a5cfcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wit.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class Wit extends EventEmitter {
const req = fetch(fullURL, {
body,
method,
proxy,
agent: proxy,
headers: {
...headers,
'Content-Type': contentType,
Expand Down

0 comments on commit 8a5cfcb

Please sign in to comment.