urllib3 which is used by the requests library has started adding a default User-Agent header. The Nissan servers do not accept any requests when there is a User-Agent header present.
This request is a little ugly, but prevents the default _HTTPConnection class inside urllib3 from adding a User-Agent header.
urllib3
which is used by therequests
library has started adding a defaultUser-Agent
header. The Nissan servers do not accept any requests when there is aUser-Agent
header present.This request is a little ugly, but prevents the default
_HTTPConnection
class insideurllib3
from adding aUser-Agent
header.