Skip to content

Commit

Permalink
User-Agent should be possible to modify - see also #385
Browse files Browse the repository at this point in the history
  • Loading branch information
tobixen committed Mar 5, 2024
1 parent eb22b33 commit 9021a7d
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions caldav/davclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -409,14 +409,12 @@ def __init__(
self.proxy = _proxy

# Build global headers
self.headers = headers
self.headers.update(
{
"User-Agent": "Mozilla/5.0",
"Content-Type": "text/xml",
"Accept": "text/xml, text/calendar",
}
)
self.headers = {
"User-Agent": "Mozilla/5.0",
"Content-Type": "text/xml",
"Accept": "text/xml, text/calendar",
}
self.headers.update(headers)
if self.url.username is not None:
username = unquote(self.url.username)
password = unquote(self.url.password)
Expand Down

0 comments on commit 9021a7d

Please sign in to comment.