- From: Ben Kelly <notifications@github.com>
- Date: Fri, 23 Oct 2015 11:25:34 -0700
- To: whatwg/fetch <fetch@noreply.github.com>
Received on Friday, 23 October 2015 18:26:03 UTC
As an example, people write code like this which expect Accept to always be present:
```
var doesRequestAcceptHtml = function (request) {
return request.headers.get('Accept')
.split(',')
.some(function (type) { return type === 'text/html'; });
};
```
From:
https://www.theguardian.com/service-worker.js
---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/142#issuecomment-150654971
Received on Friday, 23 October 2015 18:26:03 UTC