satyarohith / sift

Sift is a routing and utility library for Deno Deploy.
https://deno.land/x/sift
MIT License
170 stars 14 forks source link

Headers are immutable error #14

Closed satyarohith closed 3 years ago

satyarohith commented 3 years ago

The error is caused by https://github.com/satyarohith/sift/blob/fd0f5862e877fafbb08b7ca59a28546571743b00/mod.ts#L176

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

(Thanks @timonson for reporting!)