add User-Agent header if present in params