author | Michael Krelin <hacker@klever.net> | 2005-05-09 11:04:24 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-05-09 11:04:24 (UTC) |
commit | 01e3789f5b7c3b2c0282b70eb203d11c76d3c8f3 (patch) (side-by-side diff) | |
tree | 580ebd4a1379c40cfbaa925849de2e42dd7cd441 | |
parent | 981b219f5297ad2ccc1fc1d0e24e41ec009c35a3 (diff) | |
download | sitecing-01e3789f5b7c3b2c0282b70eb203d11c76d3c8f3.zip sitecing-01e3789f5b7c3b2c0282b70eb203d11c76d3c8f3.tar.gz sitecing-01e3789f5b7c3b2c0282b70eb203d11c76d3c8f3.tar.bz2 |
made use of kingate's headers container.
-rw-r--r-- | include/sitecing/sitecing_interface_cgi.h | 9 | ||||
-rw-r--r-- | lib/sitecing_interface_cgi.cc | 2 |
2 files changed, 4 insertions, 7 deletions
diff --git a/include/sitecing/sitecing_interface_cgi.h b/include/sitecing/sitecing_interface_cgi.h index da538d6..d17cdb7 100644 --- a/include/sitecing/sitecing_interface_cgi.h +++ b/include/sitecing/sitecing_interface_cgi.h @@ -6,3 +6,4 @@ #include <map> -#include "kingate/cgi_gateway.h" +#include <kingate/cgi_gateway.h> +#include <kingate/headers.h> #include "sitecing/sitecing_interface.h" @@ -28,9 +29,5 @@ namespace sitecing { /** - * Type for the map of headers to spit out. - */ - typedef map<string,string> headers_t; - /** * The list of headers to spit out. */ - headers_t headers; + kingate::headers headers; /** diff --git a/lib/sitecing_interface_cgi.cc b/lib/sitecing_interface_cgi.cc index f2bd093..59ae25a 100644 --- a/lib/sitecing_interface_cgi.cc +++ b/lib/sitecing_interface_cgi.cc @@ -44,3 +44,3 @@ namespace sitecing { return; - for(headers_t::const_iterator i=headers.begin();i!=headers.end();i++) + for(kingate::headers::const_iterator i=headers.begin();i!=headers.end();i++) cgigw->out() << i->first << ": " << i->second << "\n"; |