Eliminate another place using .form instead of .json

This commit is contained in:
Paul Woolcock
2018-09-13 08:28:24 -04:00
parent 7d752a9fed
commit d6a9911a0b
+1 -1
View File
@@ -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()?)
} }
} }