Skip to content

Instantly share code, notes, and snippets.

@benders
Created May 19, 2009 17:13
Show Gist options
  • Save benders/114227 to your computer and use it in GitHub Desktop.
Save benders/114227 to your computer and use it in GitHub Desktop.
Apache config to fixup the Content-Type for POST requests
SetEnv !needs_ct
SetEnvIf Request_Method POST needs_ct
SetEnvIf Content-Type "\S+" !needs_ct
RequestHeader set Content-Type "application/x-www-form-urlencoded" env=needs_ct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment