Skip to content

Commit

Permalink
Fix typo in middleware.md (#194)
Browse files Browse the repository at this point in the history
  • Loading branch information
arogachev authored Jun 27, 2023
1 parent aebe840 commit a257dfb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions guide/en/structure/middleware.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,10 @@ $answer = $request->getAttribute('answer');

### Capturing response to manipulate it

You may want to capture response to manipulating it. It could be useful for adding CORS headers, gzipping content etc.
You may want to capture response to manipulate it. It could be useful for adding CORS headers, gzipping content etc.

```php
$response = $next->handle($request);
// extra handing
return $response;
```

0 comments on commit a257dfb

Please sign in to comment.