satyarohith / sift

Sift is a routing and utility library for Deno Deploy.

Home Page:https://deno.land/x/sift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Headers are immutable error

satyarohith opened this issue · comments

The error is caused by

sift/mod.ts

Line 176 in fd0f586

if (cType) response.headers.set("content-type", cType);

This throws an error because fetch() is more spec compliant from 1.9.1 and headers are immutable.

(Thanks @timonson for reporting!)