Skip to content

Commit d98c876

Browse files
authored
Merge pull request #30 from php-http/patch-release2
Boundery should only be quoted in header
2 parents 6fd504e + 29e5008 commit d98c876

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Log
22

3+
## 0.1.5 - 2017-02-16
4+
5+
### Fixed
6+
7+
- Performance improvements by avoid using `uniqid()`.
8+
39
## 0.1.5 - 2017-02-14
410

511
### Fixed

src/MultipartStreamBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function build()
9191
$streams = '';
9292
foreach ($this->data as $data) {
9393
// Add start and headers
94-
$streams .= "--\"{$this->getBoundary()}\"\r\n".
94+
$streams .= "--{$this->getBoundary()}\r\n".
9595
$this->getHeaders($data['headers'])."\r\n";
9696

9797
// Convert the stream to string
@@ -107,7 +107,7 @@ public function build()
107107
}
108108

109109
// Append end
110-
$streams .= "--\"{$this->getBoundary()}\"--\r\n";
110+
$streams .= "--{$this->getBoundary()}--\r\n";
111111

112112
return $this->streamFactory->createStream($streams);
113113
}

0 commit comments

Comments
 (0)