Skip to content

Commit 634b8a2

Browse files
committed
Remove leading whitespace from xtask input curl config
With curl-8.13.0-rc2 the whitespace causes error: curl exited with code exit status: 26: curl: <stdin>:4: '' is unknown curl: cannot read config from '-' curl: option --config: error encountered when reading a file curl: try 'curl --help' or 'curl --manual' for more information Bisected to curl/curl@a7fda9a
1 parent 028ae5c commit 634b8a2

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

crates/xtask/src/cmd/input.rs

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ fn fetch(year: Year, day: Day) -> Result<String, Box<dyn Error>> {
6666

6767
// Use config provided to stdin to avoid leaking cookies via cli arguments
6868
let config = format!(
69-
r#"
70-
url "{url}"
71-
user-agent "{USER_AGENT}"
72-
cookie "session={token}"
73-
silent
74-
show-error
75-
fail
76-
proto "=https"
77-
"#
69+
r#"url "{url}"
70+
user-agent "{USER_AGENT}"
71+
cookie "session={token}"
72+
silent
73+
show-error
74+
fail
75+
proto "=https"
76+
"#
7877
);
7978

8079
let mut child = Command::new("curl")

0 commit comments

Comments
 (0)