Browse Source

Added HttpSocket::config['request']['uri'] as parameter in HttpSocket::_parseUri() called by HttpSocket::get(). Now creates correct request array for GET if query params are given and the default request should be used. Fixes #1674. No tests modified since behaviour didn't change.

Thomas Ploch 15 years ago
parent
commit
9db411d9e4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Network/Http/HttpSocket.php

+ 1 - 1
lib/Cake/Network/Http/HttpSocket.php

@@ -405,7 +405,7 @@ class HttpSocket extends CakeSocket {
  */
 	public function get($uri = null, $query = array(), $request = array()) {
 		if (!empty($query)) {
-			$uri = $this->_parseUri($uri);
+			$uri = $this->_parseUri($uri, $this->config['request']['uri']);
 			if (isset($uri['query'])) {
 				$uri['query'] = array_merge($uri['query'], $query);
 			} else {