|
|
|
@@ -976,8 +976,8 @@ func getJupyterBaseUrl(url string) string { |
|
|
|
func getCookiesAndCsrf(client *resty.Client, jupyterUrl string) ([]*http.Cookie, string) { |
|
|
|
|
|
|
|
var cookies []*http.Cookie |
|
|
|
for i := 0; i < 4; i++ { |
|
|
|
res, err := client.R().Get(jupyterUrl) |
|
|
|
for i := 0; i < 10; i++ { |
|
|
|
res, err := client.R().SetCookies(cookies).Get(jupyterUrl) |
|
|
|
if err != nil { |
|
|
|
log.Error("browser jupyterUrl failed.") |
|
|
|
return cookies, "" |
|
|
|
|