Commits

Mahlon Smith committed 6e2d1e0

Don't modify the original request URI object when calling
HttpRequest#base_uri.

Comments (0)

Files changed (1)

lib/strelka/httprequest.rb

 	###   request.base_uri
 	###   # => #<URI::HTTP:0x007fe34d16b2e0 URL:http://localhost:8080/user>
 	def base_uri
-		rval = self.uri
+		rval = self.uri.dup
 		rval.path = self.headers.pattern
 		rval.query = nil
 		return rval