diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-10 11:05:43 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-02-11 09:32:28 +0100 |
commit | d2332f60f31600641189f03bdecaa82a0f889da5 (patch) | |
tree | 96b7c7762ebabc3eed61321cbc050a182bca6d13 /lib/request.php | |
parent | 04146f2059e2d038177db544ea9f37a124f0781e (diff) | |
download | nextcloud-server-d2332f60f31600641189f03bdecaa82a0f889da5.tar.gz nextcloud-server-d2332f60f31600641189f03bdecaa82a0f889da5.zip |
add a custom header clients can use to skip a n additional propset request
Diffstat (limited to 'lib/request.php')
-rwxr-xr-x | lib/request.php | 12 |
1 files changed, 12 insertions, 0 deletions
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; + } + } } |