this will break if you have a parameter containing an index array and you expect to replace it (a list of trusted proxy IPs for instance)