summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/response.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/response.php b/lib/public/response.php
index 24d3c81d628..c32eb4a05e0 100644
--- a/lib/public/response.php
+++ b/lib/public/response.php
@@ -64,6 +64,14 @@ class Response {
}
/**
+ * Sets the content length header (with possible workarounds)
+ * @param string|int|float $length Length to be sent
+ */
+ static public function setContentLengthHeader($length) {
+ \OC_Response::setContentLengthHeader($length);
+ }
+
+ /**
* Disable browser caching
* @see enableCaching with cache_time = 0
*/