Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #2 from Sidnicious/cgi_flookup_const

Make cgi_t::flookup() const for consistency with other lookup methods
  • Loading branch information...
commit da7c937fe097444c06604327882c4ff6455e56c2 2 parents 27eee8b + 2257ccb
@mmaxim mmaxim authored
View
2  configure.in
@@ -4,7 +4,7 @@ dnl Process this file with autoconf to produce a configure script.
dnl
AC_INIT(config.h.in)
-AM_INIT_AUTOMAKE(okws, 3.1.15.8)
+AM_INIT_AUTOMAKE(okws, 3.1.15.9)
AM_CONFIG_HEADER(config.h)
SFS_INIT_LDVERSION(3500, SFSLITE_ABI_VERSION)
View
2  libahttp/mpfd.C
@@ -251,7 +251,7 @@ cgi_mpfd_t::parse_2dash ()
}
bool
-cgi_mpfd_t::flookup (const str &k, cgi_files_t **v)
+cgi_mpfd_t::flookup (const str &k, cgi_files_t **v) const
{
pair_t *p = tab[k];
if (!p)
View
2  libahttp/mpfd.h
@@ -118,7 +118,7 @@ class cgi_mpfd_t : public cgi_t, public http_hdr_t {
~cgi_mpfd_t ();
- bool flookup (const str &k, cgi_files_t **v);
+ bool flookup (const str &k, cgi_files_t **v) const;
void finsert (const str &k, const cgi_file_t &f);
pair_t *alloc_pair (const str &k, const str &v, bool e = true) const
{ return New cgi_mpfd_pair_t (k,v,e); }
View
4 libahttp/okcgi.h
@@ -100,7 +100,7 @@ class cgi_t : public virtual async_parser_t,
virtual abuf_stat_t parse_guts_driver ();
abuf_stat_t parse_key_or_val (str *r, bool use_internal_state = true);
- virtual bool flookup (const str &k, cgi_files_t **v) { return false; }
+ virtual bool flookup (const str &k, cgi_files_t **v) const { return false; }
void set_max_scratchlen (ssize_t i) { _maxlen = i; }
@@ -158,7 +158,7 @@ class cgiw_t {
template<typename T> cgiw_t & insert (const str &k, T v, bool ap = true)
{ c->insert (k, v, ap); return (*this); }
cgi_t *cgi () const { return c; }
- bool flookup (const str &k, cgi_files_t **v) { return c->flookup (k,v); }
+ bool flookup (const str &k, cgi_files_t **v) const { return c->flookup (k,v); }
void load_dict (pub3::dict_t *d) const { return c->load_dict (d); }
private:
View
2  libpub/okws_sfs.h
@@ -52,7 +52,7 @@
#define OKWS_VERSION_MAJOR 3
#define OKWS_VERSION_MINOR 1
#define OKWS_VERSION_PATCHLEVEL 15
-#define OKWS_VERSION_PRE 108
+#define OKWS_VERSION_PRE 109
#define OKWS_AT_VERSION(Maj,Min,Pat,Pre) \
(VERSION_FLATTEN(Maj,Min,Pat,Pre) <= \
Please sign in to comment.
Something went wrong with that request. Please try again.