@er314 opened this Pull Request on July 12th 2016 Contributor

This is PR as a result to discussion on issue #10153.

-> I remove "send_image=0" from request parameters, when the call goes through getImage().
-> this allows the PHP tracker to reply to GET requests with a 1x1 image, instead of HTTP 204.

Note : the corresponding code in /core/Tracker/Response.php is :

    private function outputApiResponse(Tracker $tracker)
    {
       [...]
       if (array_key_exists('send_image', $request) && $request['send_image'] === '0') {
            Common::sendResponseCode(204);
            return;
        }
        $this->outputTransparentGif();
    }
}
@er314 commented on July 12th 2016 Contributor

done !
bonne soirée

This Pull Request was closed on July 13th 2016
Powered by GitHub Issue Mirror