Eliminate another place using .form instead of .json
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ impl<'a, H: HttpSend> Registration<'a, H> {
|
|||||||
|
|
||||||
fn send_app(&self, app: &App) -> Result<OAuth> {
|
fn send_app(&self, app: &App) -> Result<OAuth> {
|
||||||
let url = format!("{}/api/v1/apps", self.base);
|
let url = format!("{}/api/v1/apps", self.base);
|
||||||
Ok(self.send(self.client.post(&url).form(&app))?.json()?)
|
Ok(self.send(self.client.post(&url).json(&app))?.json()?)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user