Skip to content

Commit

Permalink
Fix use of deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
emarsden committed Aug 31, 2024
1 parent cf8e1a2 commit 3d83379
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ pub async fn fetch_pssh_data(url: &str) -> Result<String, JsError> {
},
}
let mut opts = RequestInit::new();
opts.method("GET");
opts.set_method("GET");
let request = Request::new_with_str_and_init(url, &opts)
.or(Err(PsshBoxWasmError::WebSys(String::from("creating Request"))))?;
request
Expand Down

0 comments on commit 3d83379

Please sign in to comment.