From d2332f60f31600641189f03bdecaa82a0f889da5 Mon Sep 17 00:00:00 2001 From: Jörn Friedrich Dreyer Date: Sun, 10 Feb 2013 11:05:43 +0100 Subject: add a custom header clients can use to skip a n additional propset request --- lib/request.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'lib/request.php') diff --git a/lib/request.php b/lib/request.php index 1661a1406ca..3c668b02c5f 100755 --- a/lib/request.php +++ b/lib/request.php @@ -149,4 +149,16 @@ class OC_Request { return 'gzip'; return false; } + + /** + * @brief Check if the requester sent along an mtime + * @returns false or an mtime + */ + static public function hasModificationTime () { + if (isset($_SERVER['HTTP_X_OC_MTIME'])) { + return $_SERVER['HTTP_X_OC_MTIME']; + } else { + return false; + } + } } -- cgit v1.2.3