Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix namespace collision (#292)

Add request method in redirection
  • Loading branch information...
commit 85d1102061781589fd638a9b064b92d7a5f57c9e 1 parent aea0e68
@haraldpdl haraldpdl authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 osCommerce/OM/Core/HttpRequest/Curl.php
View
5 osCommerce/OM/Core/HttpRequest/Curl.php
@@ -8,8 +8,6 @@
namespace osCommerce\OM\Core\HttpRequest;
- use osCommerce\OM\Core\HttpRequest;
-
class Curl {
public static function execute($parameters) {
$curl = curl_init($parameters['server']['scheme'] . '://' . $parameters['server']['host'] . $parameters['server']['path'] . (isset($parameters['server']['query']) ? '?' . $parameters['server']['query'] : ''));
@@ -58,9 +56,10 @@ public static function execute($parameters) {
$parameters['redir_counter']++;
$redir_params = array('url' => $redir_url,
+ 'method' => $parameters['method'],
'redir_counter', $parameters['redir_counter']);
- $body = HttpRequest::getResponse($redir_params, 'Curl');
+ $body = \osCommerce\OM\Core\HttpRequest::getResponse($redir_params, 'Curl');
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.