-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extends isProtectedRoute to allow HEAD requests
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.
- Loading branch information
1 parent
5f72d8a
commit c178881
Showing
2 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters