Skip to content
Snippets Groups Projects
Commit a46ba8ea authored by Demian Katz's avatar Demian Katz Committed by Robert Lange
Browse files

Use more appropriate redirect method.

parent 7a02ca16
No related merge requests found
...@@ -283,8 +283,7 @@ class OverdriveController extends AbstractBase implements LoggerAwareInterface ...@@ -283,8 +283,7 @@ class OverdriveController extends AbstractBase implements LoggerAwareInterface
//Redirect to resource //Redirect to resource
$url = $result->data->downloadLink; $url = $result->data->downloadLink;
$this->debug("redirecting to: $url"); $this->debug("redirecting to: $url");
header("Location: $url"); return $this->redirect()->toUrl($url);
exit();
} }
} else { } else {
$this->logWarning("overdrive action not defined: $action"); $this->logWarning("overdrive action not defined: $action");
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment