Files
cgrates/ees/httpjsonmap.go
ionutboangiu bd3e18754b Clone header before creating exporter HTTP request
Behind http.Header is just a map and it's not safe for concurrent use.
Before this change, a panic might have occurred when doing asynchronous
HTTP exports (applies to both *http_post and *http_json_map exporters).
Cloning the header before adding it to the HTTP request has fixed this
issue.

Slightly improved the test that found this data race.
2024-09-05 20:46:40 +02:00

4.6 KiB