File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 1616
1717
1818SERVER_JS_DEFINE_REGEX = re .compile (
19- r'(?:"ServerJS".{,100}\.handle\({.*"define":)|(?:require\("ServerJSDefine"\)\)?\.handleDefines\()'
19+ r'(?:"ServerJS".{,100}\.handle\({.*"define":)'
20+ r'|(?:ServerJS.{,100}\.handleWithCustomApplyEach\(ScheduledApplyEach,{.*"define":)'
21+ r'|(?:require\("ServerJSDefine"\)\)?\.handleDefines\()'
2022)
2123SERVER_JS_DEFINE_JSON_DECODER = json .JSONDecoder ()
2224
@@ -411,7 +413,7 @@ def _from_session(cls, session):
411413
412414 # Make a request to the main page to retrieve ServerJSDefine entries
413415 try :
414- r = session .get (prefix_url ("/" ), allow_redirects = False )
416+ r = session .get (prefix_url ("/" ), allow_redirects = True )
415417 except requests .RequestException as e :
416418 _exception .handle_requests_error (e )
417419 _exception .handle_http_error (r .status_code )
You can’t perform that action at this time.
0 commit comments