контроллер:
public function actionDo(){
d($_POST['barcode']);
return $this->redirect("/barcode-post/done");
}
у редиректа redirect статускод по умолчанию 302 https://prnt.sc/xB97J47ZTTph
просматриваю заголовок на стороне клиента и в ответе вижу 200:
Код: Выделить всё
I/System.out: 200
I/System.out: header key: null
I/System.out: header null value: HTTP/1.1 200 OK
I/System.out: header key: Cache-Control
I/System.out: header Cache-Control value: no-store, no-cache, must-revalidate
I/System.out: header key: Connection
I/System.out: header Connection value: keep-alive
I/System.out: header key: Content-Type
I/System.out: header Content-Type value: text/html; charset=UTF-8
I/System.out: header key: Date
I/System.out: header Date value: Tue, 17 Jan 2023 07:25:34 GMT
+ если смотреть бади, то будет хтмл страницы куда редирект идет...
почему я получаю 200 и содержание страницы редиректа, а не 302 и значение локейшена в хедерах?...