mirror of
https://github.com/kataras/iris.git
synced 2025-12-20 03:17:04 +00:00
context.SendFile supports resume (by range). https://github.com/kataras/iris/issues/359#issuecomment-240471538
This commit is contained in:
@@ -248,7 +248,8 @@ func (p *pluginContainer) Add(plugins ...Plugin) error {
|
||||
}
|
||||
// Activate the plugin, if no error then add it to the plugins
|
||||
if pluginObj, ok := plugin.(pluginActivate); ok {
|
||||
tempPluginContainer := *p
|
||||
|
||||
tempPluginContainer := *p // contains the mutex but we' re safe here.
|
||||
err := pluginObj.Activate(&tempPluginContainer)
|
||||
if err != nil {
|
||||
return errPluginActivate.Format(pName, err.Error())
|
||||
|
||||
Reference in New Issue
Block a user