|
@@ -270,8 +270,8 @@ |
|
|
block discarded – undo |
|
270
|
270
|
*/ |
|
271
|
271
|
public function contentType(string $contentType): self |
|
272
|
272
|
{ |
|
273
|
|
- // If this is a multipart request and boundary was not defined, |
|
274
|
|
- // we define a boundary as this is required for multipart requests. |
|
|
273
|
+ // If this is a multipart request and boundary was not defined, |
|
|
274
|
+ // we define a boundary as this is required for multipart requests. |
|
275
|
275
|
if (stripos($contentType, 'multipart/') !== false) { |
|
276
|
276
|
if (stripos($contentType, 'boundary') === false) { |
|
277
|
277
|
$contentType .= sprintf('; boundary="%s"', uniqid((string) time())); |
Please login to merge, or discard this patch.