From 01e3789f5b7c3b2c0282b70eb203d11c76d3c8f3 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Mon, 09 May 2005 11:04:24 +0000 Subject: made use of kingate's headers container. --- 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 @@ -4,7 +4,8 @@ #include #include #include -#include "kingate/cgi_gateway.h" +#include +#include #include "sitecing/sitecing_interface.h" #include "sitecing/sitespace.h" @@ -26,13 +27,9 @@ namespace sitecing { */ kingate::cgi_gateway* cgigw; /** - * Type for the map of headers to spit out. - */ - typedef map headers_t; - /** * The list of headers to spit out. */ - headers_t headers; + kingate::headers headers; /** * 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 @@ -42,7 +42,7 @@ namespace sitecing { 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; -- cgit v0.9.0.2