<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -85,10 +85,12 @@ module ActionController
       def recognize(request)
         # Normalize path
         path = (request.path.slice(0,1) == &quot;/&quot; ? request.path : &quot;/#{request.path}&quot;)
-        
+
         # Default to GET for request method
         request_method = (request.request_method || :get)
-        
+
+        target = &quot;#{request_method} #{path}&quot;
+
         matched = {}
         route = matches = captures = nil
         routeset = []
@@ -99,7 +101,7 @@ module ActionController
         # Iterate each set of recognizers
         @recognizers.each do |recognizer, routes|
           # Match path to recognizer
-          if &quot;#{request_method} #{path}&quot; =~ recognizer
+          if target =~ recognizer
             matches = Regexp.last_match
             # Grab set of routes + matched path
             if capture = matches.captures.compact.first</diff>
      <filename>lib/krauter.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>6b02b1c72b74da27a2b542fb6601fa98dd6d34ee</id>
    </parent>
  </parents>
  <author>
    <name>Joshua Peek</name>
    <email>josh@joshpeek.com</email>
  </author>
  <url>http://github.com/jeremymcanally/krauter/commit/b0b8dd0948ced31d7a7dafcde723a576506568a0</url>
  <id>b0b8dd0948ced31d7a7dafcde723a576506568a0</id>
  <committed-date>2009-01-04T12:25:39-08:00</committed-date>
  <authored-date>2009-01-04T08:47:16-08:00</authored-date>
  <message>Generate target string outside the recognizer loop

Signed-off-by: Jeremy McAnally &lt;jeremymcanally@gmail.com&gt;</message>
  <tree>895bd9754c02bd5ad2fd6a996880abb109461ed7</tree>
  <committer>
    <name>Jeremy McAnally</name>
    <email>jeremymcanally@gmail.com</email>
  </committer>
</commit>
