From 1748d3a84eef215d0d493dceddf9ba399a6b74cf Mon Sep 17 00:00:00 2001 From: islamw Date: Thu, 28 Jan 2016 23:53:15 +0200 Subject: [PATCH] fix multiple requests --- src/Parameters.php | 5 ++++- src/WebService.php | 11 ++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Parameters.php b/src/Parameters.php index 2e7d0fe..2d83127 100644 --- a/src/Parameters.php +++ b/src/Parameters.php @@ -117,7 +117,10 @@ protected static function joinParam( $param = [], $join = '=', $glue = '&', $use /***/ - + public static function resetParams() + { + self::$urlParam = []; + } } ?> diff --git a/src/WebService.php b/src/WebService.php index cde01f8..c771fe6 100644 --- a/src/WebService.php +++ b/src/WebService.php @@ -267,7 +267,9 @@ protected function build( $service ){ // is ssl_verify_peer key set, use it, otherwise use default key $this->verifySSL = empty(config('googlemaps.ssl_verify_peer')) ? FALSE - :config('googlemaps.ssl_verify_peer'); + :config('googlemaps.ssl_verify_peer'); + + $this->clearParameters(); } /***/ @@ -381,6 +383,13 @@ protected function make( $isPost = false ){ return $output; } + + protected function clearParameters() + { + Parameters::resetParams(); + } + + /***/ }