diff --git a/src/request_signer.rs b/src/request_signer.rs index f702b2c..6872e98 100644 --- a/src/request_signer.rs +++ b/src/request_signer.rs @@ -119,9 +119,6 @@ impl TryFrom for HttpMessageToSign { .to_string(); let body = match *request.method() { - reqwest::Method::GET => { - vec![] - } reqwest::Method::POST => request .body() .ok_or(Error::InvalidRequest( @@ -132,7 +129,9 @@ impl TryFrom for HttpMessageToSign { "Failed to convert HTTP body to bytes".to_string(), ))? .to_vec(), - _ => panic!("Unhandled HTTP method: {:?}", request.method()), + _ => { + vec![] + } }; let path_and_query = {