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) (unidiff) | |
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 | |||
@@ -5,5 +5,6 @@ | |||
5 | #include <string> | 5 | #include <string> |
6 | #include <map> | 6 | #include <map> |
7 | #include "kingate/cgi_gateway.h" | 7 | #include <kingate/cgi_gateway.h> |
8 | #include <kingate/headers.h> | ||
8 | #include "sitecing/sitecing_interface.h" | 9 | #include "sitecing/sitecing_interface.h" |
9 | #include "sitecing/sitespace.h" | 10 | #include "sitecing/sitespace.h" |
@@ -27,11 +28,7 @@ namespace sitecing { | |||
27 | kingate::cgi_gateway* cgigw; | 28 | kingate::cgi_gateway* cgigw; |
28 | /** | 29 | /** |
29 | * Type for the map of headers to spit out. | ||
30 | */ | ||
31 | typedef map<string,string> headers_t; | ||
32 | /** | ||
33 | * The list of headers to spit out. | 30 | * The list of headers to spit out. |
34 | */ | 31 | */ |
35 | headers_t headers; | 32 | kingate::headers headers; |
36 | /** | 33 | /** |
37 | * Here is where we prebuffer output. | 34 | * Here is where we prebuffer output. |
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 | |||
@@ -43,5 +43,5 @@ namespace sitecing { | |||
43 | if(headers_flushed) | 43 | if(headers_flushed) |
44 | return; | 44 | return; |
45 | for(headers_t::const_iterator i=headers.begin();i!=headers.end();i++) | 45 | for(kingate::headers::const_iterator i=headers.begin();i!=headers.end();i++) |
46 | cgigw->out() << i->first << ": " << i->second << "\n"; | 46 | cgigw->out() << i->first << ": " << i->second << "\n"; |
47 | cgigw->out() << "\n"; | 47 | cgigw->out() << "\n"; |