Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill-Znamenskiy committed Aug 1, 2017
1 parent b1fbd40 commit 74e831f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "v3project/yii2-helpers",
"version": "1.0.5",
"version": "1.0.6",
"description": "Yii2 helpers",
"keywords": ["yii2", "helpers"],
"type": "yii2-extension",
Expand Down
2 changes: 1 addition & 1 deletion src/CanUrl.php
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ public function if_need_then_send_redirect($is_final, $current_url = null) {

$response = \Yii::$app->getResponse();

$response->getHeaders()->set('Location', $res);
$response->getHeaders()->set('X-Can-Url', 'YES');
$response->getHeaders()->set('Location', $res);
$response->setStatusCode(301);
$response->send();
exit;
Expand Down

0 comments on commit 74e831f

Please sign in to comment.