]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/getputfile.c
Load cups into easysw/current.
[thirdparty/cups.git] / cups / getputfile.c
index 6c534a70f0eceb8de2563df74f6e13651033d161..9dc7f7a9cd15b898db89c84a089d62294ee1ce6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: getputfile.c 5147 2006-02-22 16:37:44Z mike $"
+ * "$Id: getputfile.c 5235 2006-03-06 13:02:23Z mike $"
  *
  *   Get/put file functions for the Common UNIX Printing System (CUPS).
  *
@@ -68,6 +68,8 @@ cupsGetFd(http_t     *http,           /* I - HTTP connection to server */
   int          bytes;                  /* Number of bytes read */
   char         buffer[8192];           /* Buffer for file */
   http_status_t        status;                 /* HTTP status from server */
+  char         if_modified_since[HTTP_MAX_VALUE];
+                                       /* If-Modified-Since header */
 
 
  /*
@@ -89,10 +91,14 @@ cupsGetFd(http_t     *http,         /* I - HTTP connection to server */
   * Then send GET requests to the HTTP server...
   */
 
+  strlcpy(if_modified_since, httpGetField(http, HTTP_FIELD_IF_MODIFIED_SINCE),
+          sizeof(if_modified_since));
+
   do
   {
     httpClearFields(http);
     httpSetField(http, HTTP_FIELD_AUTHORIZATION, http->authstring);
+    httpSetField(http, HTTP_FIELD_IF_MODIFIED_SINCE, if_modified_since);
 
     if (httpGet(http, resource))
     {
@@ -482,5 +488,5 @@ cupsPutFile(http_t     *http,               /* I - HTTP connection to server */
 
 
 /*
- * End of "$Id: getputfile.c 5147 2006-02-22 16:37:44Z mike $".
+ * End of "$Id: getputfile.c 5235 2006-03-06 13:02:23Z mike $".
  */