Skip to content

Commit 0eb0ab7

Browse files
committed
Fix build error
1 parent 82bb382 commit 0eb0ab7

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/fetcher.rs

+5-2
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,11 @@ pub fn get_problems() -> Option<Problems> {
150150
);
151151
h.insert(
152152
"Cookie",
153-
std::env::var("LEETCODE_COOKIE")
154-
.expect("Please set LEETCODE_COOKIE in .env file or environment"),
153+
reqwest::header::HeaderValue::from_str(
154+
&std::env::var("LEETCODE_COOKIE")
155+
.expect("Please set LEETCODE_COOKIE in .env file or environment"),
156+
)
157+
.unwrap(),
155158
);
156159
h
157160
};

0 commit comments

Comments
 (0)