Browse Source

Remove sudo header

master
NGnius (Graham) 4 years ago
parent
commit
529880f7b3
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/apis/repository_api.rs

+ 3
- 3
src/apis/repository_api.rs View File

@@ -6294,7 +6294,7 @@ impl<C: hyper::client::Connect>RepositoryApi for RepositoryApiClient<C> {
Some(ref prefix) => format!("{} {}", prefix, key),
None => key,
};
auth_headers.insert("Sudo".to_owned(), val);
//auth_headers.insert("Sudo".to_owned(), val);
};
if let Some(ref apikey) = configuration.api_key {
let key = apikey.key.clone();
@@ -6302,7 +6302,7 @@ impl<C: hyper::client::Connect>RepositoryApi for RepositoryApiClient<C> {
Some(ref prefix) => format!("{} {}", prefix, key),
None => key,
};
auth_query.insert("sudo".to_owned(), val);
//auth_query.insert("sudo".to_owned(), val);
};
if let Some(ref apikey) = configuration.api_key {
let key = apikey.key.clone();
@@ -6324,7 +6324,7 @@ impl<C: hyper::client::Connect>RepositoryApi for RepositoryApiClient<C> {
query.finish()
};
let uri_str = format!("{}/repos/{owner}/{repo}/releases?{}", configuration.base_path, query_string, owner=owner, repo=repo);
//println!("Request URL {}", uri_str);
// TODO(farcaller): handle error
// if let Err(e) = uri {
// return Box::new(futures::future::err(e));