summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--NEWS.xml4
-rw-r--r--src/cgi_interface.cc2
2 files changed, 5 insertions, 1 deletions
diff --git a/NEWS.xml b/NEWS.xml
index d1d89f6..482e18d 100644
--- a/NEWS.xml
+++ b/NEWS.xml
@@ -1,6 +1,10 @@
1<?xml version="1.0" encoding="us-ascii"?> 1<?xml version="1.0" encoding="us-ascii"?>
2<news> 2<news>
3 <version version="0.0.1">
4 <ni>support for 'plain' CGI made fastcgi optional</ni>
5 <ni>portability improvements (compiles on FreeBSD)</ni>
6 </version>
3 <version version="0.0" date="January 29th, 2005"> 7 <version version="0.0" date="January 29th, 2005">
4 <ni>Initial release</ni> 8 <ni>Initial release</ni>
5 </version> 9 </version>
6</news> 10</news>
diff --git a/src/cgi_interface.cc b/src/cgi_interface.cc
index ffbd2bf..af5c020 100644
--- a/src/cgi_interface.cc
+++ b/src/cgi_interface.cc
@@ -1,16 +1,16 @@
1#include "kingate/cgi_interface.h" 1#include "kingate/cgi_interface.h"
2#include "kingate/exception.h" 2#include "kingate/exception.h"
3 3
4namespace kingate { 4namespace kingate {
5 5
6 bool cgi_interface::has_meta(const string& n) const { 6 bool cgi_interface::has_meta(const string& n) const {
7 return metavars.find(n) != metavars.end(); 7 return metavars.find(n) != metavars.end();
8 } 8 }
9 const string& cgi_interface::get_meta(const string& n) const { 9 const string& cgi_interface::get_meta(const string& n) const {
10 metavars_t::const_iterator rv = metavars.find(n); 10 metavars_t::const_iterator rv = metavars.find(n);
11 if(rv == metavars.end()) 11 if(rv == metavars.end())
12 throw exception_notfound(CODEPOINT,"no such meta-variable"); 12 throw exception_notfound(CODEPOINT,string("no such meta-variable ('")+n+"')");
13 return rv->second; 13 return rv->second;
14 } 14 }
15 15
16} 16}