Update content-length only if already present
Use auto for type inference
Add only the first unique value into query_params