Results 58 comments of Kurt Mackey

Also I haven't looked closely at this library, but User Agent parsing is so intricate it might be worth using it (or something like it): https://github.com/faisalman/ua-parser-js

That seems like a good path. We haven't documented this well yet, but we're shooing for apps that use the CDN code and look something like this: ```typescript import {...

Here's an example middleware to add a device type header in a branch: https://github.com/superfly/cdn/compare/user-agent-parsing?expand=1#diff-56064ccff3c2d3c1065db991c8672487

Yeah I would like to have an app generator. I really like `create-react-app`.

Ah, `FlyRequest` is really just an interface, which means it can't "created". You can safely use `new Request(url)` for everything.

Ah no worries! Sorry I missed your question. I think what's happening here is that `new Request(url, options)` can't actually handle a `Headers` object type. Try changing `normalizeOptions` to this:...

Since `Headers` is a class, the console log doesn't know how to serialize it. Try `console.log(headers.toJSON())`. That's a utility method we added since opaque classes can be a pain sometimes.

@lucacasonato @quaos this is only happening with Deno? I can't get `fetch("https://cdn.dreg.dev/package/@rollup/[email protected]")` or `fetch("https://x.lcas.dev")` to do it in 1.5.2, and curl works from all the cities I've tried. If you...