Skip to content

Commit

Permalink
Fix #1254 - add missing MIME-Version header
Browse files Browse the repository at this point in the history
  • Loading branch information
slaanesh committed Mar 3, 2020
1 parent 4f720e9 commit 0e94608
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/CalDAV/Schedule/IMipPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ public function schedule(ITip\Message $iTipMessage)
$headers = [
'Reply-To: '.$sender,
'From: '.$iTipMessage->senderName.' <'.$this->senderEmail.'>',
'MIME-Version: 1.0',
'Content-Type: text/calendar; charset=UTF-8; method='.$iTipMessage->method,
];
if (DAV\Server::$exposeVersion) {
Expand Down
3 changes: 3 additions & 0 deletions tests/Sabre/CalDAV/Schedule/IMipPluginTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ public function testDeliverReply()
'headers' => [
'Reply-To: Sender <[email protected]>',
'From: Sender <[email protected]>',
'MIME-Version: 1.0',
'Content-Type: text/calendar; charset=UTF-8; method=REPLY',
'X-Sabre-Version: '.\Sabre\DAV\Version::VERSION,
],
Expand Down Expand Up @@ -118,6 +119,7 @@ public function testDeliverRequest()
'headers' => [
'Reply-To: Sender <[email protected]>',
'From: Sender <[email protected]>',
'MIME-Version: 1.0',
'Content-Type: text/calendar; charset=UTF-8; method=REQUEST',
'X-Sabre-Version: '.\Sabre\DAV\Version::VERSION,
],
Expand Down Expand Up @@ -158,6 +160,7 @@ public function testDeliverCancel()
'headers' => [
'Reply-To: Sender <[email protected]>',
'From: Sender <[email protected]>',
'MIME-Version: 1.0',
'Content-Type: text/calendar; charset=UTF-8; method=CANCEL',
'X-Sabre-Version: '.\Sabre\DAV\Version::VERSION,
],
Expand Down

0 comments on commit 0e94608

Please sign in to comment.