Skip to content

Commit

Permalink
not consume builder
Browse files Browse the repository at this point in the history
  • Loading branch information
MikailBag committed Jun 3, 2020
1 parent 7a04730 commit 0d1d348
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build/client_mod.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -269,9 +269,9 @@ pub mod client \{
fn request_builder(&self, method: http::Method, rel_path: &str) -> Self::Request \{
let mut u = self.cfg.base_url.clone();
u.push_str(rel_path.trim_start_matches('/'));
let builder = self.client.request(method, &u);
let mut builder = self.client.request(method, &u);
if let Some(key) = &self.cfg.api_key \{
builder.header(key.header_name.as_str(), key.key.as_str());
builder = builder.header(key.header_name.as_str(), key.key.as_str());
}
builder
}
Expand Down

0 comments on commit 0d1d348

Please sign in to comment.