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 16
16
17
17
18
18
SERVER_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\()'
20
22
)
21
23
SERVER_JS_DEFINE_JSON_DECODER = json .JSONDecoder ()
22
24
@@ -411,7 +413,7 @@ def _from_session(cls, session):
411
413
412
414
# Make a request to the main page to retrieve ServerJSDefine entries
413
415
try :
414
- r = session .get (prefix_url ("/" ), allow_redirects = False )
416
+ r = session .get (prefix_url ("/" ), allow_redirects = True )
415
417
except requests .RequestException as e :
416
418
_exception .handle_requests_error (e )
417
419
_exception .handle_http_error (r .status_code )
You can’t perform that action at this time.
0 commit comments