Lowercase axum in a few more places

This commit is contained in:
Jonas Platte 2025-01-23 23:16:04 +01:00
parent f2fc88a1fe
commit 0cb686535a
7 changed files with 9 additions and 9 deletions

View File

@ -196,7 +196,7 @@ however, will stay intact on the Pull Request page.
## Reviewing Pull Requests
**Any Tokio, Hyperium, and Tower, Axum community member is welcome to review any pull request**.
**Any Tokio, Hyperium, and Tower, axum community member is welcome to review any pull request**.
All contributors who choose to review and provide feedback on Pull Requests have
a responsibility to both the project and the individual making the contribution.
@ -242,7 +242,7 @@ Specific performance optimization techniques, coding styles and conventions
change over time. The first impression you give to a new contributor never does.
Nits (requests for small changes that are not essential) are fine, but try to
avoid stalling the Pull Request. Most nits can typically be fixed by the Axum
avoid stalling the Pull Request. Most nits can typically be fixed by the axum
Collaborator landing the Pull Request but they can also be an opportunity for
the contributor to learn a bit more about the project.

View File

@ -1,4 +1,4 @@
Copyright 2021 Axum Contributors
Copyright 2021 axum Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,4 +1,4 @@
Copyright 2021 Axum Contributors
Copyright 2021 axum Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,4 +1,4 @@
Copyright 2021 Axum Contributors
Copyright 2021 axum Contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

View File

@ -1,4 +1,4 @@
Copyright (c) 2019 Axum Contributors
Copyright (c) 2019 axum Contributors
Permission is hereby granted, free of charge, to any
person obtaining a copy of this software and associated

View File

@ -259,7 +259,7 @@ If you choose to implement a custom error type such as `type Error = BoxError` (
```ignore
ServiceBuilder::new()
.layer(HandleErrorLayer::new(|_: BoxError| async {
// because Axum uses infallible errors, you must handle your custom error type from your middleware here
// because axum uses infallible errors, you must handle your custom error type from your middleware here
StatusCode::BAD_REQUEST
}))
.layer(

View File

@ -1080,9 +1080,9 @@ async fn middleware_adding_body() {
let app = Router::new()
.route("/", get(()))
.layer(MapResponseLayer::new(|mut res: Response| -> Response {
// If there is a content-length header, its value will be zero and Axum will avoid
// If there is a content-length header, its value will be zero and axum will avoid
// overwriting it. But this means our content-length doesnt match the length of the
// body, which leads to panics in Hyper. Thus we have to ensure that Axum doesnt add
// body, which leads to panics in Hyper. Thus we have to ensure that axum doesnt add
// on content-length headers until after middleware has been run.
assert!(!res.headers().contains_key("content-length"));
*res.body_mut() = "".into();