anx-api icon indicating copy to clipboard operation
anx-api copied to clipboard

Detect and set useragent to null when running from browsers.

Open tsantef opened this issue 9 years ago • 2 comments

tsantef avatar Oct 10 '16 19:10 tsantef

How about not setting UserAgent at all.. And just let the library/platform's user agent flow through?

tarun avatar Nov 14 '16 22:11 tarun

So far it's been very useful for me in debugging anx-api issues in api logs. Axios sets the UserAgent if the user does not https://github.com/mzabriskie/axios/blob/master/lib/adapters/http.js#L29

tsantef avatar Nov 14 '16 22:11 tsantef