Fix problem with PUT.

This commit is contained in:
Andrew McMillan 2006-11-27 09:04:40 +13:00
parent e0fdd5e793
commit 3a28e85d19
3 changed files with 6 additions and 6 deletions

View File

@ -119,12 +119,12 @@ elseif ( $qry->rows == 1 ) {
if ( $put_action_type == 'INSERT' ) {
$qry = new PgQuery( "INSERT INTO caldav_data ( user_no, dav_name, dav_etag, caldav_data, caldav_type, logged_user, created, modified ) VALUES( ?, ?, ?, ?, ?, ?, current_timestamp, current_timestamp )",
$request->user_no, $request->path, $etag, $raw_post, $ic->type, $session->user_no );
$request->user_no, $request->path, $etag, $request->raw_post, $ic->type, $session->user_no );
$qry->Exec("PUT");
}
else {
$qry = new PgQuery( "UPDATE caldav_data SET caldav_data=?, dav_etag=?, caldav_type=?, logged_user=?, modified=current_timestamp WHERE user_no=? AND dav_name=?",
$raw_post, $etag, $ic->type, $session->user_no, $request->user_no, $request->path );
$request->raw_post, $etag, $ic->type, $session->user_no, $request->user_no, $request->path );
$qry->Exec("PUT");
}

View File

@ -1,9 +1,9 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "38ba0832b5ab1fd7147b102ceba0becc"
ETag: "145f7e7222b7b8d4f7e194244e825ebe"
Content-Length: 1199
Content-Type: text/xml;charset=UTF-8
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="UTF-8" ?>
<multistatus xmlns="DAV:">

View File

@ -1,9 +1,9 @@
HTTP/1.1 207 Multi-Status
Date: Dow, 01 Jan 2000 00:00:00 GMT
Server: Apache/2.2.3 (Debian) DAV/2
ETag: "c9a2201f704ccb8d43f3ca5dce1ab51e"
ETag: "9f4924e81f1c237854f11d8d58e85dae"
Content-Length: 1199
Content-Type: text/xml;charset=UTF-8
Content-Type: text/xml; charset="utf-8"
<?xml version="1.0" encoding="UTF-8" ?>
<multistatus xmlns="DAV:">