diff --git a/doc/site/src/docs/index.page b/doc/site/src/docs/index.page index 314dac08..62f29ed4 100644 --- a/doc/site/src/docs/index.page +++ b/doc/site/src/docs/index.page @@ -96,7 +96,7 @@ and shoot them a thanks when you can. h1. Frequently Asked Questions When people ask questions really frequently the results end up in the -"FAQ":faq.html. +"FAQ":../faq.html. h1. Mailing Lists diff --git a/doc/site/src/docs/pound.page b/doc/site/src/docs/pound.page index df0cf7b3..604e79c6 100644 --- a/doc/site/src/docs/pound.page +++ b/doc/site/src/docs/pound.page @@ -16,7 +16,7 @@ h2. Requirements We assume that the following: -* Pound and the monogrel cluster are running on the same machine[1]. +* Pound and the mongrel cluster are running on the same machine[1]. * *Pound 2.0.4* is built and installed, including SSL support if desired. * The *mongrel* gem is installed. * The *mongrel_cluster* gem is installed. diff --git a/ext/http11/http11.c b/ext/http11/http11.c index f73d8722..d81f7419 100644 --- a/ext/http11/http11.c +++ b/ext/http11/http11.c @@ -32,6 +32,8 @@ static VALUE global_mongrel_version; static VALUE global_server_software; static VALUE global_port_80; +#define TRIE_INCREASE 30 + /** Defines common length and error messages for input length validation. */ #define DEF_MAX_LENGTH(N,length) const size_t MAX_##N##_LENGTH = length; const char *MAX_##N##_LENGTH_ERR = "HTTP element " # N " is longer than the " # length " allowed length."; @@ -63,7 +65,7 @@ void http_field(void *data, const char *field, size_t flen, const char *value, s v = rb_str_new(value, vlen); f = rb_str_dup(global_http_prefix); f = rb_str_buf_cat(f, field, flen); - + for(ch = RSTRING(f)->ptr, end = ch + RSTRING(f)->len; ch < end; ch++) { if(*ch == '-') { *ch = '_'; @@ -100,7 +102,7 @@ void query_string(void *data, const char *at, size_t length) { VALUE req = (VALUE)data; VALUE val = Qnil; - + VALIDATE_MAX_LENGTH(length, QUERY_STRING); val = rb_str_new(at, length); @@ -337,7 +339,6 @@ void URIClassifier_free(void *data) } -#define TRIE_INCREASE 30 VALUE URIClassifier_alloc(VALUE klass) {