Skip to content

Commit

Permalink
fix: don't drop METHOD when building ClientRequest (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
rentallect authored Sep 11, 2023
1 parent d966140 commit c0b8bdd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http/_http_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ function urlToOptions(url) {
search: url.search,
pathname: url.pathname,
path: `${url.pathname || ''}${url.search || ''}`,
href: url.href
href: url.href,
method: url.method
};
if (url.port !== '') {
options.port = Number(url.port);
Expand Down

0 comments on commit c0b8bdd

Please sign in to comment.