Skip to content

Instantly share code, notes, and snippets.

@saxenap
Created October 27, 2015 19:09
Show Gist options
  • Save saxenap/709729ec0c403910187c to your computer and use it in GitHub Desktop.
Save saxenap/709729ec0c403910187c to your computer and use it in GitHub Desktop.
Set ContentType header to Text/Plain from Apache to prettify output.
<If "%{QUERY_STRING} =~ /(prettyprint|pretty|displaycode)/">
Header set Content-Type text/plain
</If>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment