Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Make sure to convert headerValue to string
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed Jun 10, 2016
1 parent 04d81e8 commit 7bbd9ae
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/core/src/pydio/Core/Controller/HTMLWriter.php
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 7bbd9ae

Please sign in to comment.