diff options
author | metamuffin <metamuffin@disroot.org> | 2025-03-19 19:35:16 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-03-19 19:35:16 +0100 |
commit | 69a77b36172503ada9047a756bb5972a4c7005dc (patch) | |
tree | 8a361183533e972d38b06b59f7a77c98f76b3ab3 /src/modules/cgi.rs | |
parent | e22020da294381b22998ee885876b56614bca890 (diff) | |
download | gnix-69a77b36172503ada9047a756bb5972a4c7005dc.tar gnix-69a77b36172503ada9047a756bb5972a4c7005dc.tar.bz2 gnix-69a77b36172503ada9047a756bb5972a4c7005dc.tar.zst |
clippy
Diffstat (limited to 'src/modules/cgi.rs')
-rw-r--r-- | src/modules/cgi.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/cgi.rs b/src/modules/cgi.rs index 6d68b15..d54ec9d 100644 --- a/src/modules/cgi.rs +++ b/src/modules/cgi.rs @@ -88,8 +88,7 @@ impl Node for Cgi { request .headers() .get(CONTENT_LENGTH) - .map(|x| x.to_str().ok()) - .flatten() + .and_then(|x| x.to_str().ok()) .unwrap_or_default(), ); command.env( @@ -97,8 +96,7 @@ impl Node for Cgi { request .headers() .get(CONTENT_TYPE) - .map(|x| x.to_str().ok()) - .flatten() + .and_then(|x| x.to_str().ok()) .unwrap_or_default(), ); command.env("GATEWAY_INTERFACE", "CGI/1.1"); |