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

Make use of AuthorizeRequest to ensure a 401 status code for single profiler result #133

Merged
merged 1 commit into from
Jul 12, 2016

Conversation

TheCloudlessSky
Copy link
Contributor

If a non-authorized user visits a MiniProfiler results url (e.g. http://app.com/mini-profiler-resources/results?id=<guid>), they do not get a 401 status code. Having a 401 status code is what the documentation for MiniProfiler.Settings.Results_Authorize says it should return.

@yellis
Copy link
Member

yellis commented Jul 12, 2016

looks good, but you are missing a closing parentheses on the if line (please squash to one commit)

…rofiler result

If a non-authorized user visits a MiniProfiler results url (e.g. `http://app.com/mini-profiler-resources/results?id=<guid>`), they do *not* get a 401 status code. Having a 401 status code is what the documentation for `MiniProfiler.Settings.Results_Authorize` says it should return.
@TheCloudlessSky
Copy link
Contributor Author

@yellis Fixed and squashed.

@yellis yellis merged commit 21a52c5 into MiniProfiler:master Jul 12, 2016
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.

2 participants