Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extends isProtectedRoute to allow HEAD requests #29

Merged
merged 1 commit into from
Aug 27, 2020

Conversation

mattoberle
Copy link
Contributor

This commit is to address a problem that has been perplexing me for months. Whenever I try to make a HEAD request to a clay page I get a 302 redirect to /_auth/login instead of getting response headers from the page.

The consequence of this behavior is that one is forced to render and download the full page contents, when they may only be interested in the Content-Length, status code, or other bits of information.

This commit is to address a problem that has been perplexing me for
months. Whenever I try to make a HEAD request to a clay page I get a 302
redirect to `/_auth/login` instead of getting response headers from the
page.

The consequence of this behavior is that one is forced to render and
download the full page contents, when they may only be interested in the
Content-Length, status code, or other bits of information.
@mattoberle mattoberle force-pushed the no-302s-on-head-requests branch from f9abbea to c178881 Compare August 27, 2020 14:07
@mattoberle mattoberle merged commit 94201d6 into master Aug 27, 2020
@mattoberle mattoberle deleted the no-302s-on-head-requests branch August 27, 2020 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants