summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--include/sitecing/sitecing_interface_cgi.h9
-rw-r--r--lib/sitecing_interface_cgi.cc2
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
@@ -3,9 +3,10 @@
#include <sstream>
#include <string>
#include <map>
-#include "kingate/cgi_gateway.h"
+#include <kingate/cgi_gateway.h>
+#include <kingate/headers.h>
#include "sitecing/sitecing_interface.h"
#include "sitecing/sitespace.h"
/**
@@ -25,15 +26,11 @@ namespace sitecing {
* Pointer to the CGI gateway interface.
*/
kingate::cgi_gateway* cgigw;
/**
- * 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;
/**
* Here is where we prebuffer output.
*/
stringbuf prebuffer;
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
@@ -41,9 +41,9 @@ namespace sitecing {
void sitecing_interface_cgi::flush_headers() {
assert(cgigw);
if(headers_flushed)
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";
cgigw->out() << "\n";
headers_flushed = true;
}