Skip to content
This repository has been archived by the owner on Nov 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #96 from philkra/use-http-compression
Browse files Browse the repository at this point in the history
enable gzip compression
  • Loading branch information
philkra authored Sep 5, 2019
2 parents bc7376e + e22b903 commit 784a448
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Middleware/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,10 @@ private function getRequestHeaders() : array
{
// Default Headers Set
$headers = [
'Content-Type' => 'application/x-ndjson',
'User-Agent' => sprintf('elastic-apm-php/%s', Agent::VERSION),
'Accept' => 'application/json',
'Content-Type' => 'application/x-ndjson',
'Content-Encoding' => 'gzip',
'User-Agent' => sprintf('elasticapm-php/%s', Agent::VERSION),
'Accept' => 'application/json',
];

// Add Secret Token to Header
Expand Down

0 comments on commit 784a448

Please sign in to comment.