mirror of
https://github.com/mickael-kerjean/filestash.git
synced 2026-03-13 10:12:40 +08:00
fix (plg_backend_azure): edge case on azure
There was this issue on azure where it would report through the browser context cancelled error where the context we got back was stale as it would get wrapped in utils.Wrap and cause downstream issues
This commit is contained in:
@@ -36,9 +36,7 @@ func (this *AzureBlob) Init(params map[string]string, app *App) (IBackend, error
|
||||
Log.Debug("plg_backend_azure::new_client_error %s", err.Error())
|
||||
return nil, ErrAuthenticationFailed
|
||||
}
|
||||
this.ctx = app.Context
|
||||
this.client = client
|
||||
return this, nil
|
||||
return &AzureBlob{client, app.Context}, nil
|
||||
}
|
||||
|
||||
func (this *AzureBlob) LoginForm() Form {
|
||||
|
||||
Reference in New Issue
Block a user