-
SummaryIt seems that there is a length limit on the parameters of my query request, as it cannot be processed normally when exceeding 150 characters. Specifically, I have a URL where the "policy" parameter contains 151 characters. When processed with Axum, it returns a 404 error. However, when I shorten this parameter to 150 characters, the access is successful. policy 151 characters: policy 150 characters: May I ask if there is a place in Axum to set the character limit for query parameters? If so, where should the configuration be done? axum version0.8.4 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
There's no such limit as far as I know. curl -v 'localhost:4000/?q=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' to this handler async fn handler(Query(s): Query<HashMap<String, String>>) {
println!("{}", s.get("q").unwrap().len());
} returns 200 and prints 200 (which is the number of |
Beta Was this translation helpful? Give feedback.
There's no such limit as far as I know.
Sending this
curl -v 'localhost:4000/?q=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
to this handler
returns 200 and prints 200 (which is the number of
x
s in the query string.