diff options
author | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-11-20 16:49:27 +0000 |
---|---|---|
committer | zedshaw <zedshaw@19e92222-5c0b-0410-8929-a290d50e31e9> | 2006-11-20 16:49:27 +0000 |
commit | 3bcfb2300689d3ab086c705f39dce2ae9815d8e0 (patch) | |
tree | b2bf4824a532b4272a5244f5406663f5dd84c266 /ext/http11/http11.c | |
parent | b5619586e8f111163ef57b3b09f8efe6d5407d3d (diff) | |
download | unicorn-3bcfb2300689d3ab086c705f39dce2ae9815d8e0.tar.gz |
git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@393 19e92222-5c0b-0410-8929-a290d50e31e9
Diffstat (limited to 'ext/http11/http11.c')
-rw-r--r-- | ext/http11/http11.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/ext/http11/http11.c b/ext/http11/http11.c index 9c623fc..ef51ebb 100644 --- a/ext/http11/http11.c +++ b/ext/http11/http11.c @@ -245,13 +245,6 @@ VALUE BMHSearch_init(VALUE self, VALUE needle, VALUE max_find) S->needle = ALLOC_N(unsigned char, S->nlen); memcpy(S->needle, RSTRING(needle)->ptr, S->nlen); - // the only restriction on the needle so far is that you can't have repeat chars - if(S->needle[0] == S->needle[1]) { - free(S->needle); - S->needle = NULL; - rb_raise(eBMHSearchError, "Needle can't begin with > 1 of the same char."); - } - // setup the number of finds they want S->found_at = ALLOC_N(size_t, S->max_find); |