diff options
author | Teddy Wing | 2020-06-28 12:00:59 +0200 |
---|---|---|
committer | Teddy Wing | 2020-06-28 12:00:59 +0200 |
commit | ed3ab289d13e6024fb504a2d1cfb3852f2327220 (patch) | |
tree | aa96b05394d73740a98a3aed8204c02c0da8fe74 /src | |
parent | a2156b678a23d49a710ca5ff1345bee1c90254ec (diff) | |
download | fastcgi-conduit-ed3ab289d13e6024fb504a2d1cfb3852f2327220.tar.bz2 |
FastCgiRequest: Reorder `host` method implementation
To match the struct field order.
Diffstat (limited to 'src')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -96,10 +96,6 @@ impl<'a> FastCgiRequest<'a> { } } - fn host(request: &fastcgi::Request) -> String { - request.param("HTTP_HOST").unwrap_or_default() - } - fn version(request: &fastcgi::Request) -> conduit::Version { match request.param("SERVER_PROTOCOL").unwrap_or_default().as_str() { "HTTP/0.9" => conduit::Version::HTTP_09, @@ -111,6 +107,10 @@ impl<'a> FastCgiRequest<'a> { } } + fn host(request: &fastcgi::Request) -> String { + request.param("HTTP_HOST").unwrap_or_default() + } + fn method( request: &fastcgi::Request ) -> Result<conduit::Method, http::method::InvalidMethod> { |