- From: Jake Archibald <notifications@github.com>
- Date: Thu, 26 Mar 2015 10:16:46 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Thursday, 26 March 2015 17:17:17 UTC
Being able to add headers like this is kinda nice, but not essential. If we make them mutable, we should do the same with requests. ```js self.addEventListener('fetch', function(event) { event.request.headers.append('foo', 'bar'); }); ``` Of course, that shouldn't work with 'no-cors' requests, probably other kinds of requests too. If editing headers on `fetchEvent.request`s & responses returned by fetch throws now, it's something we can open up later. --- Reply to this email directly or view it on GitHub: https://github.com/whatwg/fetch/issues/24#issuecomment-86629941
Received on Thursday, 26 March 2015 17:17:17 UTC