use api_request_get in the content fetcher too

This commit is contained in:
Sebastian Hugentobler 2017-05-05 18:05:54 +02:00
parent 2d83acbfe8
commit 32a0fb7eff

View File

@ -429,7 +429,7 @@ impl<'a> Gog<'a> {
let content_uri = self.content_uri(content_id);
debug!("looking for information at {}...", &content_uri);
let response = self.http_client.get(content_uri.as_str())?;
let response = self.api_request_get(content_uri.as_str())?;
let content_raw: Value = serde_json::from_str(response.as_str())?;
debug!("found {:?}", &content_raw);