This PR updates the way we check for the presence of the Inertia header in incoming requests to ensure compatibility with HTTP/2.
HTTP/2 automatically normalizes all headers to lowercase, so we now access the headers property of the request object and look for the lowercase version of HEADERS.INERTIA_HEADER instead of using the rawHeaders property.
This PR updates the way we check for the presence of the Inertia header in incoming requests to ensure compatibility with HTTP/2.
HTTP/2 automatically normalizes all headers to lowercase, so we now access the headers property of the request object and look for the lowercase version of
HEADERS.INERTIA_HEADER
instead of using therawHeaders
property.