I am trying to do simple http post request using the following code: Golang code from another SO post
It's sending the http request twice (I tried both to my own web service and also to the Firebase messaging server). Anyone have any idea of what's wrong? Thank you.
Edit
Ignore me, figured out it's the AVG anti virus causing the problem. If I do:go run program.go
then hit enter just once, AVG interrupts saying it has scan it and then let it run. This results in the http call twice. If I disable antivirus before running, then the http requrest is received only once on the other side. I've switched the antivirus on and off a few times to confirm this is the cause.