client-api: Fix the http method of set_pushrule request serialization

… by using METADATA.method.
This commit is contained in:
Nicolas Mauri 2023-06-05 21:23:20 +02:00 committed by GitHub
parent e3282d8bfe
commit a2b64c20bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -94,7 +94,7 @@ pub mod v3 {
let body: RequestBody = self.rule.into(); let body: RequestBody = self.rule.into();
http::Request::builder() http::Request::builder()
.method(http::Method::GET) .method(METADATA.method)
.uri(url) .uri(url)
.header(header::CONTENT_TYPE, "application/json") .header(header::CONTENT_TYPE, "application/json")
.header( .header(