Home > database >  No Body received when requesting JSON
No Body received when requesting JSON

Time:09-29

I'm trying to download a json file from Screen Shot from Postman working

CodePudding user response:

Simply add a User-Agent request header: req.Header.Set("User-Agent", "xxx")

Without seeing the docs, I'm not sure why this is, but any arbitrary value seems to do.

  • Related