Skip to content

Commit

Permalink
feat: support paramas on GET method
Browse files Browse the repository at this point in the history
  • Loading branch information
GideonSenku committed Jul 22, 2023
1 parent f393885 commit 02d54ff
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 69 deletions.
4 changes: 3 additions & 1 deletion Env.js
Expand Up @@ -319,6 +319,9 @@ function Env(name, opts) {
delete request.headers['content-type']
delete request.headers['content-length']
}
if (request.params) {
request.url += '?' + this.queryStr(request.params)
}
switch (this.getEnv()) {
case 'Surge':
case 'Loon':
Expand Down Expand Up @@ -698,7 +701,6 @@ function Env(name, opts) {
break
case 'Node.js':
process.exit(1)
break
}
}
})(name, opts)
Expand Down
2 changes: 1 addition & 1 deletion Env.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 02d54ff

Please sign in to comment.