Open asafambar opened 5 months ago
This PR is a temp solution for data race found by go tool, it prevent the tool from failing. in curation we have many requests in parallel using the same http client, one of the struct values 'CheckRedirect' is set to nil after each request, as for the usage of the use today with the client, the value is always nil, so there is no need to write any nil value again which cause data race, For better future use of this client to have parallel requests safely (only on post requests or specific config use it) , this should not be changed after each requests but be determined on the Initialization of the client.
[X] I used gofmt for formatting the code before submitting the pull request.