Skip to content

Commit

Permalink
Fixing class loading for HttpResponse classes, and making possible to…
Browse files Browse the repository at this point in the history
… pass plugin HttpResponse classes too
  • Loading branch information
lorenzo committed Apr 10, 2011
1 parent 0a1f9d1 commit c83a396
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/Cake/Network/Http/HttpSocket.php
Expand Up @@ -363,7 +363,9 @@ public function request($request = array()) {
$this->disconnect();
}

if (!App::import('Lib', $this->responseClass)) {
list($plugin, $responseClass) = pluginSplit($this->responseClass, true);
App::uses($this->responseClass, $plugin . 'Network/Http');
if (!class_exists($responseClass)) {
throw new SocketException(__d('cake_dev', 'Class %s not found.', $this->responseClass));
}
$responseClass = $this->responseClass;
Expand Down

0 comments on commit c83a396

Please sign in to comment.