Skip to content

Commit

Permalink
fix: set header for Maestro request as api-key instead of api_key
Browse files Browse the repository at this point in the history
  • Loading branch information
sourabhxyz committed Aug 5, 2024
1 parent 174e837 commit f26aa14
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @generated file from wasmbuild -- do not edit
// deno-lint-ignore-file
// deno-fmt-ignore-file
// source-hash: 48fbf1656de3bcfc28fa6ea7700367cc6649f4dd
// source-hash: 1ebe808cb0e2e28c65872aec3d912c4612694ba4
let wasm;

const cachedTextDecoder = new TextDecoder("utf-8", {
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// @generated file from wasmbuild -- do not edit
// deno-lint-ignore-file
// deno-fmt-ignore-file
// source-hash: 48fbf1656de3bcfc28fa6ea7700367cc6649f4dd
// source-hash: 1ebe808cb0e2e28c65872aec3d912c4612694ba4

let imports = {};
imports["__wbindgen_placeholder__"] = module.exports;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ pub async fn get_ex_units_maestro(tx: Transaction, ms: &Maestro) -> Result<Redee

let request = Request::new_with_str_and_init(&url, &opts)?;
request.headers().set("Content-Type", "application/json")?;
request.headers().set("api_key", &ms.api_key)?;
request.headers().set("api-key", &ms.api_key)?;

let window = js_sys::global().unchecked_into::<globalThis>();
let resp_value = JsFuture::from(window.fetch_with_request(&request)).await?;
Expand Down

0 comments on commit f26aa14

Please sign in to comment.