Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions steamguard/src/confirmation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ use crate::{
SteamGuardAccount,
};

const ACCEPT_LANGUAGE: &str = "en-US,en;q=0.9";

lazy_static! {
static ref STEAM_COOKIE_URL: Url = "https://steamcommunity.com".parse::<Url>().unwrap();
}
Expand Down Expand Up @@ -95,6 +97,7 @@ where
)
.header(USER_AGENT, "steamguard-cli")
.header(COOKIE, cookies.cookies(&STEAM_COOKIE_URL).unwrap())
.header("Accept-Language", ACCEPT_LANGUAGE)
.query(&self.get_confirmation_query_params("conf", time))
.send()?;

Expand Down Expand Up @@ -148,6 +151,7 @@ where
)
.header(USER_AGENT, "steamguard-cli")
.header(COOKIE, cookies.cookies(&STEAM_COOKIE_URL).unwrap())
.header("Accept-Language", ACCEPT_LANGUAGE)
.header("Origin", "https://steamcommunity.com")
.query(&query_params)
.send()?;
Expand Down Expand Up @@ -239,8 +243,7 @@ where
"application/x-www-form-urlencoded; charset=UTF-8",
)
.header("Origin", "https://steamcommunity.com")
// Steam Community eventually returns HTTP 429 without this browser-style header.

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment was lost

@pullfrog pullfrog Bot Jul 11, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Error

agent completed without reporting progress

Pullfrog  | Rerun failed job ➔View workflow run | via Pullfrog | Using Kimi K2 (free via Pullfrog for OSS) | 𝕏

.header("Accept-Language", "en-US,en;q=0.9")
.header("Accept-Language", ACCEPT_LANGUAGE)
.body(query_params)
.send()?;

Expand Down Expand Up @@ -354,6 +357,7 @@ where
)
.header(USER_AGENT, "steamguard-cli")
.header(COOKIE, cookies.cookies(&STEAM_COOKIE_URL).unwrap())
.header("Accept-Language", ACCEPT_LANGUAGE)
.query(&query_params)
.send()?;

Expand Down
Loading