fix: race condition in sendHttp
Replacing the deprecated getHttpHeaders with new copyHttpHeaders method to avoid race conditions.
Edited by Sacha Brants
Replacing the deprecated getHttpHeaders with new copyHttpHeaders method to avoid race conditions.