diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-11 13:10:48 -0800 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-02-11 13:10:48 -0800 |
commit | 04bf8c1b66d6adef0466efae00c32745465767f2 (patch) | |
tree | 52bb861ced733ac84e6624d52466b8985fd0db8c /lib/request.php | |
parent | 58e57151e51a02788377f761b183c15cd03b0ef0 (diff) | |
parent | 99f41de7de4e96f5d490cfc8f3b962171d201587 (diff) | |
download | nextcloud-server-04bf8c1b66d6adef0466efae00c32745465767f2.tar.gz nextcloud-server-04bf8c1b66d6adef0466efae00c32745465767f2.zip |
Merge pull request #1596 from owncloud/fix_470
webdav put improvements
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; + } + } } |