Skip to content

Commit

Permalink
Bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
imos committed Jul 19, 2020
1 parent 93174bc commit f9c50f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/sender.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ async fn send_async(s: String) -> String {
let res = client
.post(&format!(
"{}/aliens/send?apiKey={}",
env::var("ICFPC_API_HOST").unwrap_or("https://icfpc2020-api.testkontur.ru"),
env::var("ICFPC_API_HOST").unwrap_or(
"https://icfpc2020-api.testkontur.ru".to_owned()),
env::var("ICFPC_API_KEY").expect("ICFPC_API_KEY must be specified")
))
.body(s.clone())
Expand Down

0 comments on commit f9c50f8

Please sign in to comment.