PACKAGE_STRING);
}
- if (cache) {
+ if (cache > 0) {
char httpTomorow[128];
http_datestring(httpTomorow, sizeof httpTomorow,
);
}
- stuff_to_cookie(cookie, 1024,
- WCC->wc_session,
- WCC->wc_username,
- WCC->wc_password,
- WCC->wc_roomname,
- get_selected_language()
- );
+ if (cache < 2) {
- if (unset_cookies) {
- hprintf("Set-cookie: webcit=%s; path=/\r\n", unset);
- } else {
- hprintf("Set-cookie: webcit=%s; path=/\r\n", cookie);
- if (server_cookie != NULL) {
- hprintf("%s\n", server_cookie);
+ stuff_to_cookie(cookie, 1024,
+ WCC->wc_session,
+ WCC->wc_username,
+ WCC->wc_password,
+ WCC->wc_roomname,
+ get_selected_language()
+ );
+
+ if (unset_cookies) {
+ hprintf("Set-cookie: webcit=%s; path=/\r\n", unset);
+ } else {
+ hprintf("Set-cookie: webcit=%s; path=/\r\n", cookie);
+ if (server_cookie != NULL) {
+ hprintf("%s\n", server_cookie);
+ }
}
}
#ifndef TECH_PREVIEW
lprintf(9, "http_transmit_thing(%s)%s\n",
content_type,
- (is_static ? " (static)" : "")
+ ((is_static > 0) ? " (static)" : "")
);
#endif
output_headers(0, 0, 0, 0, 0, is_static);