1
0
mirror of https://github.com/actix/actix-website synced 2024-11-27 10:02:57 +01:00

Update middleware.md (#304)

correct a misaligned title
This commit is contained in:
Peihao Yang 2023-01-05 21:46:24 +08:00 committed by GitHub
parent faee3e8bdd
commit 3ba8592c0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,7 +69,7 @@ INFO:actix_web::middleware::logger: 127.0.0.1:59947 [02/Dec/2017:00:22:40 -0800]
- `%{FOO}o` response.headers['FOO']
- `%{FOO}e` os.environ['FOO']
### Default headers
## Default headers
To set default response headers, the `DefaultHeaders` middleware can be used. The _DefaultHeaders_ middleware does not set the header if response headers already contain a specified header.