Try proxy_set_header Request-URI $request_uri;
In reply to your comment, you may also prefer to add:
upstream _squid { server localhost:3128;}server {... proxy_pass http://_squid/$host$uri;}