ampproject / amp-toolbox

A collection of AMP tools making it easier to publish and host AMP pages.
Apache License 2.0
449 stars 243 forks source link

CF: Use the original request to pass through headers to origin request. #1219

Closed evanderkoogh closed 3 years ago

evanderkoogh commented 3 years ago

This change is to pass in the original request object to the original fetch. This is so that headers that are present on the original request are passed through to the origin request. Cloudflare adds a headers that are often used by origin request, so this is needed.

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

samouri commented 3 years ago

@evanderkoogh: if you @ me on future PRs I'll be able to get to them more reliably (and quickly)