File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -178,11 +178,11 @@ def _handle_session_init(
178178 session .session_component_tree , mode = writer .Config .mode
179179 )
180180
181+ headers = session .headers or {}
181182 writer_application : Optional [WriterApplicationInformation ] = None
182- writer_app_id = os .getenv ("WRITER_APP_ID" )
183- writer_org_id = os .getenv ("WRITER_ORG_ID" )
184- writer_base_url = \
185- os .getenv ("WRITER_BASE_URL" , "https://api.writer.com" )
183+ writer_app_id = headers .get ("x-agent-id" ) or os .getenv ("WRITER_APP_ID" )
184+ writer_org_id = headers .get ("x-organization-id" ) or os .getenv ("WRITER_ORG_ID" )
185+ writer_base_url = os .getenv ("WRITER_BASE_URL" , "https://api.writer.com" )
186186 if writer_app_id is not None and writer_org_id is not None :
187187 writer_application = WriterApplicationInformation (
188188 id = writer_app_id ,
You can’t perform that action at this time.
0 commit comments