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
Copy file name to clipboardExpand all lines: highcharts_core/headless_export.py
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -107,7 +107,8 @@ def __init__(self, **kwargs):
107
107
108
108
@property
109
109
defreferer(self) ->Optional[str]:
110
-
"""The referer to use when making requests to the export server. Defaults to
110
+
"""The referer to use when making requests to the export server. Defaults to the
111
+
``HIGHCHARTS_EXPORT_SERVER_REFERER`` environment variable if present, otherwise defaults to
111
112
``'https://www.highcharts.com'``.
112
113
113
114
:rtype: :class:`str <python:str>` or :obj:`None <python:None>`
@@ -124,15 +125,15 @@ def referer(self, value):
124
125
125
126
@property
126
127
defuser_agent(self) ->Optional[str]:
127
-
"""The user agent to use when making requests to the export server. Defaults to
128
-
``Highcharts for Python / v.<VERSION NUMBER>.
128
+
"""The user agent to use when making requests to the export server. Defaults to the ``HIGHCHARTS_EXPORT_SERVER_USER_AGENT`` environment variable if present, otherwise defaults to
129
+
``Highcharts Core for Python / v.<VERSION NUMBER>.
129
130
130
131
:rtype: :class:`str <python:str>` or :obj:`None <python:None>`
131
132
"""
132
133
ifself._user_agent:
133
134
returnself._user_agent
134
135
135
-
returnf'Highcharts for Python / v.{highcharts_version.__version__}'
136
+
returnf'Highcharts Core for Python / v.{highcharts_version.__version__}'
0 commit comments