Update of /cvsroot/webware/Webware/WebKit/Adapters/mod_webkit
In directory sc8-pr-cvs1:/tmp/cvs-serv9910/Adapters/mod_webkit
Modified Files:
mod_webkit.c
Log Message:
Added IMS support patch [ 608957 ] from Ken Lalonde.
Adds the If-Modified-Since header to the mod_webkit adapters
and checks for it in HTTPServlet.
Index: mod_webkit.c
===================================================================
RCS file: /cvsroot/webware/Webware/WebKit/Adapters/mod_webkit/mod_webkit.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** mod_webkit.c 9 Oct 2002 05:24:04 -0000 1.1
--- mod_webkit.c 23 Feb 2003 03:38:30 -0000 1.2
***************
*** 543,546 ****
--- 543,557 ----
else w_byte(TYPE_NONE, env_dict);
}
+ // If the "If-Modified-Since" HTTP header is present,
+ // add it to the environment. Servlets may inspect this
+ // value and, if the object has not changed,
+ // return "Status: 304" and no body.
+ key = "If-Modified-Since";
+ value = ap_table_get(r->headers_in, key);
+ if (value && *value) {
+ write_string(key, strlen(key), env_dict);
+ write_string(value, strlen(value), env_dict);
+ }
+
w_byte(TYPE_NULL, env_dict);
//end dictionary
|