Skip to content

Instantly share code, notes, and snippets.

@ericlaw1979
Created July 22, 2015 20:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericlaw1979/ddca0063b0faca6b69d2 to your computer and use it in GitHub Desktop.
Save ericlaw1979/ddca0063b0faca6b69d2 to your computer and use it in GitHub Desktop.
// Place inside OnBeforeResponse because even though we're only touching the
// request, we don't want to change what the server gets.
if (oSession.HTTPMethodIs("POST") && oSession.uriContains("-analytics.com/collect")
&& oSession.oRequest["Content-Type"].StartsWith("text/plain"))
{
oSession.oRequest["Content-Type"] = "application/x-www-form-urlencoded";
}
@tr33s
Copy link

tr33s commented Apr 16, 2020

It's missing "eqatec.com" and "-analytics.com/debug/collect"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment