GitHub PushEvent at 2014-12-18 04:55:17
Repository: livegrep
Actor: philz
Payload: {"shas":[["c9f05de3a27ef34c2d0f553d27c4c52795876025","3ba3974e96044dcde818e6310ed799abe10671d4@cloudera.com","Re-ordering path matching, to prefer path with backend specified.\n\nThe backend that I was choosing wasn't being respected.\nAfter confirming (with bin/dump_file) that the backend\nshould have had the right data (and killing the relevant\nbackend and not seeing any change) and adding some logging,\nI realized that the :backend parameter wasn't being\npassed along into api.go.\n\nBased on my reading of pat/mux.go, specifically:\n\n      if ph.pat != \"/\" && len(ph.pat) > 0 && ph.pat[len(ph.pat)-1] == '/' {\n              return p, true\n\nIt seems that any pattern that ends with a slash can match\neven if there's random stuff after it.  And, yes, the Add()\ncalls are ordered.\n\nI've tested the /api call manually.  The /search path seems\nto have the same issue, so I changed that too.","Philip Zeyliger",true]],"size":1,"ref":"refs/heads/master","head":"c9f05de3a27ef34c2d0f553d27c4c52795876025"}