Skip to content

Commit

Permalink
Fixed RPC Sign (#227)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliguyong authored Aug 3, 2020
1 parent 0c3533f commit aa2cef7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Support/Sign.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,9 @@ public static function rpcString($method, array $parameters)
ksort($parameters);
$canonicalized = '';
foreach ($parameters as $key => $value) {
if ($value === null || $value === '') {
continue;
}
$canonicalized .= '&' . self::percentEncode($key) . '=' . self::percentEncode($value);
}

Expand Down

0 comments on commit aa2cef7

Please sign in to comment.