Browse Source

Remove sudo header for repo_get

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

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

@@ -3504,7 +3504,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();
@@ -3512,7 +3512,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();