Skip to content

Commit

Permalink
Test changed headers
Browse files Browse the repository at this point in the history
  • Loading branch information
Leinnan committed Dec 17, 2024
1 parent 7502968 commit 70cb4a8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions bevy_beam_sdk/src/requests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,13 @@ pub struct ReqwestClient(pub reqwest::Client);
impl ReqwestClient {
fn from_config(config: &BeamableConfig) -> Self {
let mut default_headers = reqwest::header::HeaderMap::new();
default_headers.insert("X-KS-USER-AGENT", "Bevy-0.14".parse().expect(""));
default_headers.insert("Access-Control-Allow-Origin", "*".parse().expect(""));
default_headers.insert("X-KS-USER-AGENT", "Bevy-0.15".parse().expect(""));
default_headers.insert(
"X-KS-CLIENTID",
config.cid.parse().expect("Could not parse CID"),
);
default_headers.insert(
"X-KS-PROJECTID",
config.pid.parse().expect("Could not parse PID"),
"X-BEAM-SCOPE",
config
.get_x_beam_scope()
.parse()
.expect("Could not parse beam scope"),
);
let client = reqwest::ClientBuilder::new()
.default_headers(default_headers)
Expand Down

0 comments on commit 70cb4a8

Please sign in to comment.