Skip to content

Commit

Permalink
fix a problem with UrlCallBack
Browse files Browse the repository at this point in the history
  • Loading branch information
icewind1991 committed Oct 26, 2016
1 parent 5981b1b commit 0700f81
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Path.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ protected function unregister() {
* @param array $values
*/
protected function appendDefaultContent($values) {
if (!is_array(current($values))) {
$values = array($this->getProtocol() => $values);
}
$context = stream_context_get_default();
$defaults = stream_context_get_options($context);
foreach ($values as $key => $value) {
Expand Down

0 comments on commit 0700f81

Please sign in to comment.