Eliminate another place using .form instead of .json

master
Paul Woolcock 6 years ago
parent 7d752a9fed
commit d6a9911a0b
  1. 2
      src/registration.rs

@ -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()?)
} }
} }

Loading…
Cancel
Save