Skip to content

Commit

Permalink
Remove BOM from the manifest response
Browse files Browse the repository at this point in the history
  • Loading branch information
filips123 committed Jul 4, 2021
1 parent fe283b3 commit 030fc5e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions native/src/components/site.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ impl Site {
let url = config.manifest_url.clone();
let response = reqwest::blocking::get(url).context(DOWNLOAD_ERROR)?;
let json = response.text().context(DOWNLOAD_ERROR)?;
let json = json.trim_start_matches('\u{feff}');

info!("Parsing the PWA manifest");
let mut manifest: SiteManifest = serde_json::from_str(&json).context(PARSE_ERROR)?;
Expand Down

0 comments on commit 030fc5e

Please sign in to comment.