~klyachin/gomaasapi/101-testserver-extensions

« back to all changes in this revision

Viewing changes to testservice.go

  • Committer: Tarmac
  • Author(s): Jeroen Vermeulen
  • Date: 2013-03-08 11:13:00 UTC
  • mfrom: (35.1.2 slash)
  • Revision ID: tarmac-20130308111300-ryh2ygv17s20xwg5
[r=rvb][bug=][author=jtv] Support slashes in filenames.

Show diffs side-by-side

added added

removed removed

Lines of Context:
166
166
}
167
167
 
168
168
func getFileURLRE(version string) *regexp.Regexp {
169
 
        reString := fmt.Sprintf("^/api/%s/files/([^/]*)/$", regexp.QuoteMeta(version))
 
169
        reString := fmt.Sprintf("^/api/%s/files/(.*)/$", regexp.QuoteMeta(version))
170
170
        return regexp.MustCompile(reString)
171
171
}
172
172