Branch: Tag:

1998-05-20

1998-05-20 07:43:03 by David Hedbor <david@hedbor.org>

Fixed response from the put command. Previously it incorrectly
returned code 200, ie "command ok" instead of code 226 which is
"Closing data connection. Requested file action successful".

This incorrect code confused some poor (point and click) clients...

Rev: server/modules/filesystems/filesystem.pike:1.40
Rev: server/protocols/ftp2.pike:1.42

8:   inherit "roxenlib";   inherit "socket";    - constant cvs_version= "$Id: filesystem.pike,v 1.39 1998/05/15 10:26:36 grubba Exp $"; + constant cvs_version= "$Id: filesystem.pike,v 1.40 1998/05/20 07:43:03 neotron Exp $";   constant thread_safe=1;      
241:   {   // perror("Done with put.\n");    id[0]->close(); -  id[1]->write("HTTP/1.0 200 Created\r\nContent-Length: 0\r\n\r\n"); +  id[1]->write("HTTP/1.0 200 Transfer Complete.\r\nContent-Length: 0\r\n\r\n");    id[1]->close();    m_delete(putting, id[1]);    destruct(id[0]);