Permalink
Browse files

Make sure to convert headerValue to string

  • Loading branch information...
1 parent 04d81e8 commit 7bbd9ae687dbfa077f926f617a2702a281a5fbac @cdujeu cdujeu committed Jun 10, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/src/core/src/pydio/Core/Controller/HTMLWriter.php
@@ -213,7 +213,7 @@ private static function generateAttachmentsHeader(&$attachmentName, $dataSize, $
foreach($headers as $headerName => $headerValue){
if($response !== null){
- $response = $response->withHeader($headerName, $headerValue);
+ $response = $response->withHeader($headerName, (string) $headerValue);
}else{
header($headerName.": ".$headerValue);
}
@@ -255,7 +255,7 @@ private static function generateInlineHeaders($attachName, $fileSize, $mimeType,
foreach($headers as $headerName => $headerValue){
if($response !== null){
- $response = $response->withHeader($headerName, $headerValue);
+ $response = $response->withHeader($headerName, (string) $headerValue);
}else{
header($headerName.": ".$headerValue);
}

0 comments on commit 7bbd9ae

Please sign in to comment.