]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
Clean up the RSS feed. Attempt to read If-Modified-Since header.
[citadel.git] / webcit / context_loop.c
index f64433afd728072f0265b6429a634970d117013d..dec43c579753ab05158fba648d3ce1f736e0b8eb 100644 (file)
@@ -285,6 +285,10 @@ void context_loop(int sock)
                        extract_token(httpauth_pass, httpauth_string, 1, ':', sizeof httpauth_pass);
                }
 
+               if (!strncasecmp(buf, "If-Modified-Since: ", 19)) {
+                       if_modified_since = httpdate_to_timestamp(&buf[19]);
+               }
+
                /*
                 * Read in the request
                 */