summaryrefslogtreecommitdiffabout
path: root/src/cgi_gateway.cc
Unidiff
Diffstat (limited to 'src/cgi_gateway.cc') (more/less context) (ignore whitespace changes)
-rw-r--r--src/cgi_gateway.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cgi_gateway.cc b/src/cgi_gateway.cc
index 9b03639..af4e16d 100644
--- a/src/cgi_gateway.cc
+++ b/src/cgi_gateway.cc
@@ -14,25 +14,25 @@
14 14
15namespace kingate { 15namespace kingate {
16 16
17#ifdef HAVE_MIMETIC 17#ifdef HAVE_MIMETIC
18 using mimetic::MimeEntity; 18 using mimetic::MimeEntity;
19 19
20 struct TornMimeEntity : public MimeEntity { 20 struct TornMimeEntity : public MimeEntity {
21 typedef istreambuf_iterator<char> it_type; 21 typedef istreambuf_iterator<char> it_type;
22 typedef it_type::iterator_category it_cat; 22 typedef it_type::iterator_category it_cat;
23 struct IParser : public mimetic::IteratorParser<it_type,it_cat> { 23 struct IParser : public mimetic::IteratorParser<it_type,it_cat> {
24 typedef mimetic::IteratorParser<it_type,it_cat> BT; 24 typedef mimetic::IteratorParser<it_type,it_cat> BT;
25 IParser(MimeEntity& me) 25 IParser(MimeEntity& me)
26 : BT::IteratorParser<it_type,it_cat>(me) { } 26 : IteratorParser<it_type,it_cat>(me) { }
27 void loadHeader(it_type bit,it_type eit) { 27 void loadHeader(it_type bit,it_type eit) {
28 m_bit = bit; m_eit = eit; 28 m_bit = bit; m_eit = eit;
29 BT::loadHeader(); 29 BT::loadHeader();
30 } 30 }
31 void loadBody(it_type bit,it_type eit) { 31 void loadBody(it_type bit,it_type eit) {
32 m_bit = bit; m_eit = eit; 32 m_bit = bit; m_eit = eit;
33 BT::loadBody(); 33 BT::loadBody();
34 } 34 }
35 }; 35 };
36 void load(istream& hs,istream& bs,int mask=0) { 36 void load(istream& hs,istream& bs,int mask=0) {
37 IParser prs(*this); 37 IParser prs(*this);
38 prs.iMask(mask); 38 prs.iMask(mask);