From 9dec2d59712639c2809975d982c56d1385fdc706 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Thu, 10 Nov 2011 21:36:16 +0000 Subject: fix for #275 --- framework/Web/THttpResponse.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'framework/Web') diff --git a/framework/Web/THttpResponse.php b/framework/Web/THttpResponse.php index 9ef55b76..1f0bf6f2 100644 --- a/framework/Web/THttpResponse.php +++ b/framework/Web/THttpResponse.php @@ -385,8 +385,10 @@ class THttpResponse extends TModule implements ITextWriter header('Pragma: public'); header('Expires: 0'); header('Cache-Control: must-revalidate, post-check=0, pre-check=0'); + header("Content-Type: $mimeType"); + $this->_contentTypeHeaderSent = true; } - header("Content-type: $mimeType"); + header('Content-Length: '.$fileSize); header("Content-Disposition: " . ($forceDownload ? 'attachment' : 'inline') . "; filename=\"$clientFileName\""); header('Content-Transfer-Encoding: binary'); -- cgit v1.2.3