From cc15b4bb44df640ed6e469ad0819f126ecce90fc Mon Sep 17 00:00:00 2001 From: Bo Simonsen Date: Mon, 24 Jun 2019 13:31:50 +0200 Subject: [PATCH] rectify query string generation for param['key'] = false --- src/restful.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/restful.ts b/src/restful.ts index e5165a0..28f7231 100644 --- a/src/restful.ts +++ b/src/restful.ts @@ -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 )