aboutsummaryrefslogtreecommitdiffstats
path: root/lib/request.php
diff options
context:
space:
mode:
authorThomas Mueller <thomas.mueller@tmit.eu>2013-02-12 00:32:38 +0100
committerThomas Mueller <thomas.mueller@tmit.eu>2013-02-12 00:32:38 +0100
commit76b31f870cf78aa8882761d954554fecb92e6211 (patch)
tree9c89430fe00983e94cc8864a12cd05242741d4c3 /lib/request.php
parent0c31c3cc3a928e8ca9272d32d68163c0700697ea (diff)
parentfb23ac3ce2e0b3f002f036e55e516b672f088dc0 (diff)
downloadnextcloud-server-76b31f870cf78aa8882761d954554fecb92e6211.tar.gz
nextcloud-server-76b31f870cf78aa8882761d954554fecb92e6211.zip
Merge branch 'master' into master-sqlserver
Diffstat (limited to 'lib/request.php')
-rwxr-xr-xlib/request.php12
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;
+ }
+ }
}