diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a0fe52..b6e20fd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## 0.1.5 - 2017-02-16 + +### Fixed + +- Performance improvements by avoid using `uniqid()`. + ## 0.1.5 - 2017-02-14 ### Fixed diff --git a/src/MultipartStreamBuilder.php b/src/MultipartStreamBuilder.php index 2bd603b..f8170b8 100644 --- a/src/MultipartStreamBuilder.php +++ b/src/MultipartStreamBuilder.php @@ -91,7 +91,7 @@ public function build() $streams = ''; foreach ($this->data as $data) { // Add start and headers - $streams .= "--\"{$this->getBoundary()}\"\r\n". + $streams .= "--{$this->getBoundary()}\r\n". $this->getHeaders($data['headers'])."\r\n"; // Convert the stream to string @@ -107,7 +107,7 @@ public function build() } // Append end - $streams .= "--\"{$this->getBoundary()}\"--\r\n"; + $streams .= "--{$this->getBoundary()}--\r\n"; return $this->streamFactory->createStream($streams); }