Skip to content

Commit

Permalink
rectify query string generation for param['key'] = false
Browse files Browse the repository at this point in the history
  • Loading branch information
Bo Simonsen committed Jun 24, 2019
1 parent 7b38e27 commit cc15b4b
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 cc15b4b

Please sign in to comment.