/*
- * "$Id: http.c,v 1.123 2003/08/28 15:16:07 mike Exp $"
+ * "$Id: http.c,v 1.124 2003/08/29 23:56:52 mike Exp $"
*
* HTTP routines for the Common UNIX Printing System (CUPS).
*
{
/*
* A zero-length chunk ends a transfer; unless we are sending POST
- * data, go idle...
+ * or PUT data, go idle...
*/
DEBUG_puts("httpWrite: changing states...");
if (http->data_remaining == 0 && http->data_encoding == HTTP_ENCODE_LENGTH)
{
/*
- * Finished with the transfer; unless we are sending POST data, go idle...
+ * Finished with the transfer; unless we are sending POST or PUT
+ * data, go idle...
*/
DEBUG_puts("httpWrite: changing states...");
if (http->state == HTTP_POST_RECV)
http->state ++;
+ else if (http->state == HTTP_PUT_RECV)
+ http->state = HTTP_STATUS;
else
http->state = HTTP_WAITING;
}
/*
- * End of "$Id: http.c,v 1.123 2003/08/28 15:16:07 mike Exp $".
+ * End of "$Id: http.c,v 1.124 2003/08/29 23:56:52 mike Exp $".
*/