diff --git a/lib/async/http/endpoint.rb b/lib/async/http/endpoint.rb index fd31f132..aa148e62 100644 --- a/lib/async/http/endpoint.rb +++ b/lib/async/http/endpoint.rb @@ -125,7 +125,7 @@ def authority(ignore_default_port = true) # Return the path and query components of the given URL. def path - buffer = @url.path || "/" + buffer = @url.path.dup || "/" if query = @url.query buffer = "#{buffer}?#{query}" @@ -230,4 +230,4 @@ def tcp_endpoint end end end -end \ No newline at end of file +end