Fix proxy when it path contains query string