Skip to content

Commit

Permalink
Merge pull request #2864 from mekrapp/patch-2
Browse files Browse the repository at this point in the history
Update pycarwings2.py with header "User-Agent"
  • Loading branch information
benderl authored Jan 30, 2025
2 parents 10c2f13 + 457ecfe commit 7285172
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/soc_leaf/pycarwings2.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def _request(self, endpoint, params):
else:
params["custom_sessionid"] = ""

req = Request('POST', url=BASE_URL + endpoint, data=params).prepare()
req = Request('POST', url=BASE_URL + endpoint, data=params, headers={"User-Agent": ""}).prepare()

log.debug("invoking carwings API: %s" % req.url)
log.debug("params: %s" % json.dumps(
Expand Down

0 comments on commit 7285172

Please sign in to comment.