[Pkg-owncloud-commits] [php-sabredav] 128/220: Clearer HTTP header.
David Prévot
taffit at moszumanska.debian.org
Thu May 12 01:21:16 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository php-sabredav.
commit b440829e503f28e2081a6cfe27799a4cb4faa0bc
Author: Evert Pot <me at evertpot.com>
Date: Fri Apr 1 17:54:57 2016 -0400
Clearer HTTP header.
---
lib/CardDAV/Plugin.php | 2 +-
tests/Sabre/CardDAV/ValidateVCardTest.php | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/CardDAV/Plugin.php b/lib/CardDAV/Plugin.php
index bd7f881..2134127 100644
--- a/lib/CardDAV/Plugin.php
+++ b/lib/CardDAV/Plugin.php
@@ -401,7 +401,7 @@ class Plugin extends DAV\ServerPlugin {
}
if ($warningMessage) {
$this->server->httpResponse->setHeader(
- 'Ew',
+ 'X-Sabre-Ew-Gross',
'vCard validation warning: ' . $warningMessage
);
diff --git a/tests/Sabre/CardDAV/ValidateVCardTest.php b/tests/Sabre/CardDAV/ValidateVCardTest.php
index 756e440..dda8a0c 100644
--- a/tests/Sabre/CardDAV/ValidateVCardTest.php
+++ b/tests/Sabre/CardDAV/ValidateVCardTest.php
@@ -100,7 +100,7 @@ VCF;
// The custom Ew header should not be set
$this->assertNull(
- $response->getHeader('Ew')
+ $response->getHeader('X-Sabre-Ew-Gross')
);
// Valid, non-auto-fixed responses should contain an ETag.
$this->assertTrue(
@@ -154,7 +154,7 @@ VCF;
// We should have gotten an Ew header
$this->assertNotNull(
- $response->getHeader('Ew')
+ $response->getHeader('X-Sabre-Ew-Gross')
);
$expectedVCard = <<<VCF
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-php/php-sabredav.git
More information about the Pkg-owncloud-commits
mailing list