Skip to content

Commit

Permalink
Fix for proper closing connection (no keep-alive)
Browse files Browse the repository at this point in the history
  • Loading branch information
am0nshi committed Mar 25, 2019
1 parent c126d19 commit f6c4b89
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
##Nextel API client
## Nextel API client

###Install
### Install
```bash
composer require am0nshi/nextel-client
```

###Usage:
### Usage:
```bash
$client = new Nextel($apiKey);
$voiceRecordId = $client->uploadVoiceRecord($pathOrBinary);
$client->initiateCall($phone, $voiceRecordId, $meta = null);
```
```
3 changes: 2 additions & 1 deletion src/Nextel/Network.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class Network
public function __construct($apiKey)
{
$this->options['headers']['Authorization'] = $apiKey;
$this->options['headers']['Connection'] = 'close';

$this->client = new \GuzzleHttp\Client();
}
Expand Down Expand Up @@ -62,4 +63,4 @@ protected function normalizeUri($uri)
{
return $this->uri . $uri;
}
}
}

0 comments on commit f6c4b89

Please sign in to comment.