owncloud / pyocclient

ownCloud client library for Python
MIT License
294 stars 114 forks source link

Allow users to define custom User-Agent header for requests #249

Closed sralloza closed 3 years ago

sralloza commented 3 years ago

I have an owncloud server and I'm using a cloudflare to manage my domain, but the cloudflare firewall identifies the default python requests' user agent (python-requests/x.xx.x) as a bot, sending 403 always.

It would be nice to be able to define a custom User-Agent.