This commit is contained in:
Skillz
2020-07-15 09:49:57 -04:00
parent 8506beebe9
commit b3f9b5ef9f

View File

@@ -155,7 +155,7 @@ async function runMethod(
.join("&")
: "";
const urlToUse = method === "get" && query ? `${url}?${query}` : url;
console.log("url thing", urlToUse);
const response = await fetch(urlToUse, createRequestBody(body, method));
const bucketIDFromHeaders = processHeaders(url, response.headers);
handleStatusCode(response);