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

Return HTTP 204 instead of GIF for JavaScript tracking. #6659

Merged
merged 5 commits into from Nov 13, 2014
Merged

Return HTTP 204 instead of GIF for JavaScript tracking. #6659

merged 5 commits into from Nov 13, 2014

Conversation

tsteur
Copy link
Member

@tsteur tsteur commented Nov 13, 2014

#6577 Added a new url parameter send_image=0 to disable sending an image and instead response with a 204 code. Added a couple of tests. Not sure if I forgot anything. Might be worth using this parameter in iOS & Android SDK? Shall we create issues for this?

We'll have to update doc after merging it.

tsteur and others added 2 commits November 13, 2014 04:13
added a new url parameter send_image=0 to disable sending an
image and instead response with a 204 code
$request = $_GET + $_POST;

if (array_key_exists('send_image', $request) && $request['send_image'] === '0') {
Common::sendHeader("HTTP/1.0 204 No Response");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is the 1.0 protocol used instead of 1.1 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

will change it to 1.1

@tsteur tsteur added the Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. label Nov 13, 2014
@tsteur tsteur added this to the Piwik 2.10.0 milestone Nov 13, 2014
@tsteur tsteur self-assigned this Nov 13, 2014
tsteur added a commit that referenced this pull request Nov 13, 2014
 Return HTTP 204 instead of GIF for JavaScript tracking.
@tsteur tsteur merged commit 7443636 into master Nov 13, 2014
@tsteur tsteur deleted the 6577 branch November 13, 2014 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants