From 14cb2dd4cf0f5e3f689ac9f9f762cffaa4a33bf3 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Thu, 30 Aug 2018 14:26:22 -0700 Subject: [PATCH] Fix fetch example ... again? --- examples/fetch/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fetch/src/lib.rs b/examples/fetch/src/lib.rs index 53853f9b..20bfbc73 100644 --- a/examples/fetch/src/lib.rs +++ b/examples/fetch/src/lib.rs @@ -46,7 +46,7 @@ pub fn run() -> Promise { request_options.method("GET"); request_options.mode(RequestMode::Cors); - let req = Request::new_with_str_and_request_init("https://api.github.com/repos/rustwasm/wasm-bindgen/branches/master", &request_options).unwrap(); + let req = Request::new_with_str_and_init("https://api.github.com/repos/rustwasm/wasm-bindgen/branches/master", &request_options).unwrap(); // the RequestInit struct will eventually support setting headers, but that's missing right now req.headers().set("Accept", "application/vnd.github.v3+json").unwrap();