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

Add debugMode flag and only send sourceUrls if in debug mode #207

Merged
merged 3 commits into from
Aug 1, 2017

Conversation

bryankane
Copy link
Contributor

Add debugMode flag and only send sourceUrls if in debug mode …We're currently sending the sourceUrl extension on every response. However, this ends up being a very large response that is for debugging purposes only. This change adds a debugMode to the context, and we'll only send the sourceUrl data if the debug mode is enabled (it's disabled by default). Filters will be able to modify this flag, to allow for custom headers / authorization checking to enable debug mode.

Bryan Kane added 3 commits August 1, 2017 12:31
We're currently sending the `sourceUrl` extension on every response. However, this ends up being a very large response that is for debugging purposes only.

This change adds a `debugMode` to the context, and we'll only send the sourceUrl data if the debug mode is enabled (it's disabled by default). Filters will be able to modify this flag, to allow for custom headers / authorization checking to enable debug mode.
@bryankane bryankane merged commit 10175fb into coursera:master Aug 1, 2017
@bryankane bryankane deleted the debug-mode-flag branch August 1, 2017 21:14
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.

None yet

2 participants