Response code for a successful PUT should be 204 No Content rather than 200 OK.

This commit is contained in:
Andrew McMillan 2007-03-02 11:48:36 +13:00
parent 811a0e660c
commit aa0a2867bc

View File

@ -193,5 +193,5 @@ $qry->Exec("PUT");
dbg_error_log( "PUT", "User: %d, ETag: %s, Path: %s", $session->user_no, $etag, $request->path);
header(sprintf('ETag: "%s"', (isset($bogus_etag) ? $bogus_etag : $etag) ) );
$request->DoResponse( ($put_action_type == 'INSERT' ? 201 : 200) );
$request->DoResponse( ($put_action_type == 'INSERT' ? 201 : 204) );
?>