Skip to content

Commit

Permalink
fix: http rendering on node 16
Browse files Browse the repository at this point in the history
  • Loading branch information
gregnr committed May 21, 2024
1 parent e61b6e4 commit 44b1f02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/renderers/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ async function formatSelect(select: Select): Promise<HttpRequest> {
path,
params,
get fullPath() {
if (params.size > 0) {
// params.size not available in older runtimes
if (Array.from(params).length > 0) {
return `${path}?${uriEncodeParams(params)}`
}
return path
Expand Down

0 comments on commit 44b1f02

Please sign in to comment.