summaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-04-24 08:16:56 +0000
committerDries Buytaert <dries@buytaert.net>2009-04-24 08:16:56 +0000
commite99838fbf488d9bca18f56e7ea6aee32d563ab68 (patch)
treedad6b05b6f1f47cedaec7341efcf9afed9f9b764 /modules/user
parentaddaf21247113e95fffa53b1642fa779a57fd99c (diff)
downloadbrdo-e99838fbf488d9bca18f56e7ea6aee32d563ab68.tar.gz
brdo-e99838fbf488d9bca18f56e7ea6aee32d563ab68.tar.bz2
- Patch #147310 by c960657: added tests for private files, fixed a problem with private files and minor improvements.
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/user.module2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/user/user.module b/modules/user/user.module
index 7661c37e3..db8977921 100644
--- a/modules/user/user.module
+++ b/modules/user/user.module
@@ -814,7 +814,7 @@ function user_perm() {
function user_file_download($filepath) {
if (strpos($filepath, variable_get('user_picture_path', 'pictures') . '/picture-') === 0) {
$info = image_get_info(file_create_path($filepath));
- return array('Content-type: ' . $info['mime_type']);
+ return array('Content-Type' => $info['mime_type']);
}
}