Template
1
0

feat: update tests

This commit is contained in:
2025-04-18 21:22:49 +00:00
parent 7df57522d2
commit 74ab1644d6
10 changed files with 372 additions and 294 deletions

View File

@@ -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);