Skip to content

Commit

Permalink
1.0.3
Browse files Browse the repository at this point in the history
- Automatic send response in page.render:before hook
  • Loading branch information
beebmx committed Jul 1, 2024
1 parent cab534a commit e0fc485
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

All notable changes to `Kirby Middleware` will be documented in this file.

## 1.0.3 - 2024-07-01

- Automatic send response in page.render:before hook

## 1.0.2 - 2024-06-28

- Update composer description

## 1.0.1 - 2024-06-28

- Removed unnecessary files for production
- Updated README for the new middleware use

## 1.0.0 - 2024-06-27

- Initial release
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Kirby Middleware

`Kirby Middleware` provide a powerful mechanism for inspecting and filtering requests entering in your `Kirby` site.
`Kirby Middleware` provides a powerful mechanism for inspecting and filtering requests entering your `Kirby` site.

****

Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "beebmx/kirby-middleware",
"description": "Kirby Middleware provide a powerful mechanism for inspecting and filtering requests entering in your Kirby site.",
"description": "Kirby Middleware provides a powerful mechanism for inspecting and filtering requests entering in your Kirby site.",
"license": "MIT",
"type": "kirby-plugin",
"version": "1.0.2",
"version": "1.0.3",
"keywords": [
"kirby",
"kirby-4",
Expand Down
4 changes: 4 additions & 0 deletions extensions/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
throw Middleware::instance()->response();
}

if (Middleware::instance()->response() instanceof Response) {
Middleware::instance()->response()->send();
}

return $data;
},
];

0 comments on commit e0fc485

Please sign in to comment.