Skip to content

Commit ecbb60f

Browse files
committed
Application::run() counts with response
1 parent 4165859 commit ecbb60f

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Application/Application.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,10 @@ public function processRequest(Request $request): void
137137
if ($response instanceof Responses\ForwardResponse) {
138138
$request = $response->getRequest();
139139
goto process;
140-
141-
} elseif ($response) {
142-
$this->onResponse($this, $response);
143-
$response->send($this->httpRequest, $this->httpResponse);
144140
}
141+
142+
$this->onResponse($this, $response);
143+
$response->send($this->httpRequest, $this->httpResponse);
145144
}
146145

147146

0 commit comments

Comments
 (0)