mirror of
https://gitlab.com/davical-project/davical.git
synced 2026-05-30 03:24:47 +00:00
Change content-type for consistency.
This commit is contained in:
parent
825ddeae18
commit
9fc998ba9c
@ -499,7 +499,7 @@ class CalDAVRequest
|
||||
* @param int $status The HTTP status code to send.
|
||||
* @param string $message The friendly text message to send with the response.
|
||||
*/
|
||||
function DoResponse( $status, $message="", $content_type="text/plain" ) {
|
||||
function DoResponse( $status, $message="", $content_type="text/plain; charset=\"utf-8\"" ) {
|
||||
global $session, $c;
|
||||
@header( sprintf("HTTP/1.1 %d %s", $status, getStatusMessage($status)) );
|
||||
@header( sprintf("X-RSCDS-Version: RSCDS/%d.%d.%d; DB/%d.%d.%d", $c->code_major, $c->code_minor, $c->code_patch, $c->schema_major, $c->schema_minor, $c->schema_patch) );
|
||||
|
||||
@ -3,5 +3,5 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Allow: OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT, PROPPATCH
|
||||
DAV: 1, 2, access-control, calendar-access
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Cache-Control: no-cache
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
HTTP/1.1 405 Method Not Allowed
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 45
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
A collection already exists at that location.
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "b000d7defa19ccb7cd21e546b54155ee"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "b000d7defa19ccb7cd21e546b54155ee"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "22158fc45876987b2b00749a3a1684d8"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "2c32a2f8aba853654eb17fe037a4db4d"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Cache-Control: no-cache
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
HTTP/1.1 403 Forbidden
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 36
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
You may not create a calendar there.
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "75a75e1c7c4546074aab7645b5323738"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,6 +2,6 @@ HTTP/1.1 400 Bad Request
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 46
|
||||
Connection: close
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
The calendar path contains illegal characters.
|
||||
@ -1,6 +1,6 @@
|
||||
HTTP/1.1 412 Precondition Failed
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 44
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
Resource has changed on server - not deleted
|
||||
@ -1,5 +1,5 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "81979ab45975368d619171a4c3e1e5e2"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
HTTP/1.0 401 Unauthorized
|
||||
HTTP/1.1 401 Unauthorized
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
WWW-Authenticate: Basic realm="Really Simple CalDAV Store"
|
||||
Content-Length: 40
|
||||
Connection: close
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Type: text/plain; ; charset="utf-8"
|
||||
|
||||
Please log in for access to this system.
|
||||
@ -3,5 +3,5 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Allow: OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT, PROPPATCH
|
||||
DAV: 1, 2, access-control, calendar-access
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -4,5 +4,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "c3658901fd4689d4a1e1d6f08601ef4f"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
HTTP/1.0 401 Unauthorized
|
||||
HTTP/1.1 401 Unauthorized
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
WWW-Authenticate: Basic realm="Really Simple CalDAV Store"
|
||||
Content-Length: 40
|
||||
Connection: close
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Type: text/plain; ; charset="utf-8"
|
||||
|
||||
Please log in for access to this system.
|
||||
@ -3,5 +3,5 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Allow: OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT, PROPPATCH
|
||||
DAV: 1, 2, access-control, calendar-access
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
HTTP/1.0 401 Unauthorized
|
||||
HTTP/1.1 401 Unauthorized
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
WWW-Authenticate: Basic realm="Really Simple CalDAV Store"
|
||||
Content-Length: 40
|
||||
Connection: close
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Type: text/plain; ; charset="utf-8"
|
||||
|
||||
Please log in for access to this system.
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "a1c6404d61190f9574e2bfd69383f144"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "08a435c2abaf38f4a50a997343c098a7"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "5def8ae2b20893a1c7f4dbaeb008f2f1"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "ac90acd649c25070b1a2a17fb31a105a"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Cache-Control: no-cache
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,8 +1,7 @@
|
||||
HTTP/1.0 401 Unauthorized
|
||||
HTTP/1.1 401 Unauthorized
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
WWW-Authenticate: Basic realm="Really Simple CalDAV Store"
|
||||
Content-Length: 40
|
||||
Connection: close
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Type: text/plain; ; charset="utf-8"
|
||||
|
||||
Please log in for access to this system.
|
||||
@ -1,6 +1,5 @@
|
||||
HTTP/1.0 401 Unauthorized
|
||||
HTTP/1.1 401 Unauthorized
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
WWW-Authenticate: Basic realm="Really Simple CalDAV Store"
|
||||
Connection: close
|
||||
Content-Type: text/html; charset=UTF-8
|
||||
Content-Type: text/plain; ; charset="utf-8"
|
||||
|
||||
|
||||
@ -3,5 +3,5 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Allow: OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT, PROPPATCH
|
||||
DAV: 1, 2, access-control, calendar-access
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,6 +2,6 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Cache-Control: no-cache
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
10 --- /user1/home/ --- /user1/home/.ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp/ --- 72205b235fa2a3dfd18535c0793b89b2 --- .ce7ad224-8288-11db-ec28-b49a13ab0e46.tmp --- 0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
Count of matching calendars (should be 0) --- 0
|
||||
|
||||
@ -3,5 +3,5 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Allow: OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT, PROPPATCH
|
||||
DAV: 1, 2, access-control, calendar-access
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "0d7a68984bf525342d22b8924a57e8e2"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "421abf7e4848d2fecbf64217ed205d4b"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -3,5 +3,5 @@ Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Allow: OPTIONS, GET, HEAD, PUT, DELETE, PROPFIND, MKCOL, MKCALENDAR, LOCK, UNLOCK, REPORT, PROPPATCH
|
||||
DAV: 1, 2, access-control, calendar-access
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -2,5 +2,5 @@ HTTP/1.1 201 Created
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
ETag: "b000d7defa19ccb7cd21e546b54155ee"
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
HTTP/1.1 204 No Content
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 5020
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain
|
||||
|
||||
Testing the RRule Library
|
||||
20061103T073000 - RRULE:FREQ=DAILY;COUNT=7
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
HTTP/1.1 404 Not Found
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
@ -3,5 +3,5 @@ HTTP/1.1 100 Continue
|
||||
HTTP/1.1 200 OK
|
||||
Date: Dow, 01 Jan 2000 00:00:00 GMT
|
||||
Content-Length: 0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Type: text/plain; charset="utf-8"
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user