You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would seem useful if the user agent set by the python requests library could be overwritten by pyvo.
But I'd consider this very low priority, it is just for you to know...
The text was updated successfully, but these errors were encountered:
@almicol - finally had a chance to look at this. The thing is that you are creating the session yourself so you "own" it in this case. pyvo could set it but NOT if the session is part of an application that wants to set its own user agent. Maybe pyvo could set it ONLY if it's not set already? Not sure about that either.
If you want to create a pyvo session you could use pyvo.utils.http.get_session() and that session has the pyvo user agent set. It is however a bit buried 3 levels deep and not documented. Maybe we should bring it a bit forward (i.e. expose it directly in pyvo.utils?
The user agent reported by pyvo v1.1 when performing an anonymous TAP query is:
while instead when I perform an authenticated query the user agent is set to:
It is a pity to lose the pyvo information, the user agent statistics I derive are therefore affected.
My code, with authentication, looks like this:
It would seem useful if the user agent set by the python requests library could be overwritten by pyvo.
But I'd consider this very low priority, it is just for you to know...
The text was updated successfully, but these errors were encountered: