Skip to content

Commit

Permalink
update: make params as strval when call a http type service
Browse files Browse the repository at this point in the history
  • Loading branch information
idevz committed Mar 31, 2019
1 parent 2c060a6 commit 0ada4c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Motan/Endpointer.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,8 @@ public function call(\Motan\Request $request)

protected function _doSend(\Motan\Request $request)
{
if ($this->_url_obj->getUrlType() == Constants::REQ_URL_TYPE_RESTY) {
if ($this->_url_obj->getUrlType() == Constants::REQ_URL_TYPE_RESTY
|| strpos($request->getMethod(), '/')) {
$request = $request->buildHTTPParams();
}
$this->_buildConnection();
Expand Down

0 comments on commit 0ada4c8

Please sign in to comment.