Skip to content

Commit

Permalink
Merge pull request #4 from bosim/boolean-param
Browse files Browse the repository at this point in the history
rectify query string generation for param['key'] = false
  • Loading branch information
druppy authored Jun 24, 2019
2 parents 7b38e27 + cc15b4b commit b143321
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/restful.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export function mk_query(params: Object) : string {
if( qs.length > 0 )
qs += '&'

if( value ) {
if( value != null ) {
if( typeof value != 'string' )
value = JSON.stringify( value )

Expand Down

0 comments on commit b143321

Please sign in to comment.