Use #request_uri instead of #path to get path with query params from Net::HTTP request.