]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/http.c
Cleanup includes.
[thirdparty/cups.git] / cups / http.c
index 85a70d0b91a9567e91c80835b1e9580ad1e5d92b..760eaceb2205c5b9dfdf079e9349ca9e6c81f351 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$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).
  *
@@ -1134,7 +1134,7 @@ httpWrite(http_t     *http,               /* I - HTTP data */
     {
      /*
       * 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...");
@@ -1201,13 +1201,16 @@ httpWrite(http_t     *http,             /* I - HTTP data */
   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;
   }
@@ -2410,5 +2413,5 @@ CDSAWriteFunc(SSLConnectionRef connection,        /* I  - SSL/TLS connection */
 
 
 /*
- * 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 $".
  */