diff options
author | Alex Auvolat <alex@adnab.me> | 2022-12-11 21:21:40 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-12-11 21:21:40 +0100 |
commit | 3c5aa3680eab1989361026b96e4968b4cd92dcb5 (patch) | |
tree | 2ef33b9811e6189a02d6c90734a7e4c1ec437c9c /src/https.rs | |
parent | 6fda16048afbba1abb5af29b90095fd78de43398 (diff) | |
download | tricot-3c5aa3680eab1989361026b96e4968b4cd92dcb5.tar.gz tricot-3c5aa3680eab1989361026b96e4968b4cd92dcb5.zip |
status code just as integer, drop canonical reason string
Diffstat (limited to 'src/https.rs')
-rw-r--r-- | src/https.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/https.rs b/src/https.rs index 125e429..3718bfd 100644 --- a/src/https.rs +++ b/src/https.rs @@ -193,14 +193,7 @@ async fn handle_request( ) .await; - tags.push(KeyValue::new( - "status_code", - format!( - "{} {}", - resp.status().as_u16(), - resp.status().canonical_reason().unwrap_or_default() - ), - )); + tags.push(KeyValue::new("status_code", resp.status().as_u16() as i64)); metrics.requests_served.add(1, &tags); Ok(resp) |