feat: update tests
This commit is contained in:
@@ -3,7 +3,7 @@ import { RelayAdapter } from "../mod.ts";
|
||||
|
||||
export const http: RelayAdapter = {
|
||||
async fetch({ method, url, search, body }: RequestInput) {
|
||||
const res = await fetch(`${url}${search}`, { method, body });
|
||||
const res = await fetch(`${url}${search}`, { method, headers: { "content-type": "application/json" }, body });
|
||||
const data = await res.text();
|
||||
if (res.status >= 400) {
|
||||
throw new Error(data);
|
||||
|
||||
Reference in New Issue
Block a user