about summary refs log tree commit homepage
path: root/ext/http11/http11.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http11/http11.c')
-rw-r--r--ext/http11/http11.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/http11/http11.c b/ext/http11/http11.c
index a201e0e..23df7d6 100644
--- a/ext/http11/http11.c
+++ b/ext/http11/http11.c
@@ -506,7 +506,7 @@ VALUE URIClassifier_resolve(VALUE self, VALUE uri)
   DATA_GET(self, struct tst, tst);
   uri_str = (unsigned char *)StringValueCStr(uri);
 
-  handler = tst_search(uri_str, tst, &pref_len);
+  handler = tst_search(uri_str, tst, TST_LONGEST_MATCH, &pref_len);
 
   /* setup for multiple return values */
   result = rb_ary_new();