client-api: Fix the http method of set_pushrule request serialization
… by using METADATA.method.
This commit is contained in:
parent
e3282d8bfe
commit
a2b64c20bc
@ -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(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user