mirror of
https://github.com/OMGeeky/google-apis-rs.git
synced 2026-02-23 15:49:49 +01:00
fix(lib): use hyper Bearer header style
Considering we kind-of hardcoded this authentication type anyway, we now use the Auth-types provided by hyper 0.8. The incentive here was the compiler telling us that there the yup-oauth::Scheme type doesn't implement the hyper::authorization::Scheme anymore, even though that clearly was the case. Also it couldn't be reproduced in yup-oauth itself. This will need some work to get correct again, so this is just a crude patch to make it work again.
This commit is contained in:
@@ -10,7 +10,7 @@ use mime::{Mime, TopLevel, SubLevel, Attr, Value};
|
||||
use oauth2::{TokenType, Retry, self};
|
||||
use hyper;
|
||||
use hyper::header::{ContentType, ContentLength, Headers, UserAgent, Authorization, Header,
|
||||
HeaderFormat};
|
||||
HeaderFormat, Bearer};
|
||||
use hyper::http::h1::LINE_ENDING;
|
||||
use hyper::method::Method;
|
||||
use hyper::status::StatusCode;
|
||||
@@ -632,7 +632,7 @@ pub struct ResumableUploadHelper<'a, A: 'a> {
|
||||
pub start_at: Option<u64>,
|
||||
pub auth: &'a mut A,
|
||||
pub user_agent: &'a str,
|
||||
pub auth_header: Authorization<oauth2::Scheme>,
|
||||
pub auth_header: Authorization<Bearer>,
|
||||
pub url: &'a str,
|
||||
pub reader: &'a mut ReadSeek,
|
||||
pub media_type: Mime,
|
||||
|
||||
Reference in New Issue
Block a user