mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Two typos fixed, reported by Rui Lopes.
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@202 19e92222-5c0b-0410-8929-a290d50e31e9
This commit is contained in:
parent
77a2cd78ee
commit
daecee105f
3 changed files with 6 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue