Skip to content

Commit

Permalink
Заголовок X-Symfony-route для роутов Symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Aug 18, 2021
1 parent 8ff5d72 commit 5def331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/Router/InitRouter.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ public function handle(): void
}

// Для внутренних нужд пометить роут Symfony
$this->request->headers->add(['X-Symfony-route', 1]);
$this->request->headers->set('X-Symfony-route', 1);

// Перебиваю битриксовый 404 для роутов.
CHTTP::SetStatus('200 OK');
Expand Down

0 comments on commit 5def331

Please sign in to comment.