diff --git a/README.md b/README.md
index 28995bb0..dcebfc61 100644
--- a/README.md
+++ b/README.md
@@ -7,7 +7,7 @@
-
+
@@ -39,7 +39,7 @@ Ideally suited for both experienced and novice Developers.
## Recent Articles
-- [Building Web Apps with Iris](http://mycodesmells.com/post/building-web-apps-with-iris) by Paweł Słomka
+- [Building Web Apps with Iris](http://mycodesmells.com/post/building-web-apps-with-iris) by Paweł Słomka
- [The fastest web framework for Go](http://marcoscleison.xyz/the-fastest-web-framework-for-go-in-this-earth/) by Marcos Cleison
@@ -920,5 +920,3 @@ This project is licensed under the [Apache License, Version 2.0](LICENSE), Copyr
[Language Widget]: https://img.shields.io/badge/powered_by-Go-3362c2.svg?style=flat-square
[Language]: http://golang.org
[Platform Widget]: https://img.shields.io/badge/platform-Any--OS-gray.svg?style=flat-square
-[Awesome]: https://github.com/avelino/awesome-go
-[Awesome Widget]: https://img.shields.io/badge/awesome%20go-%E2%9C%93-ff69b4.svg?style=flat-square
diff --git a/context.go b/context.go
index 25e3befa..6af586c1 100644
--- a/context.go
+++ b/context.go
@@ -352,7 +352,7 @@ func (ctx *Context) PostValuesAll() (valuesAll map[string][]string) {
// PostValues returns the post data values as []string of a single key/name
func (ctx *Context) PostValues(name string) []string {
- values := make([]string, 0)
+ var values []string
if v := ctx.PostValuesAll(); v != nil && len(v) > 0 {
values = v[name]
}
diff --git a/plugin.go b/plugin.go
index 430b4245..b86b6a23 100644
--- a/plugin.go
+++ b/plugin.go
@@ -282,15 +282,16 @@ 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 // contains the mutex but we' re safe here.
- err := pluginObj.Activate(&tempPluginContainer)
+ //tempPluginContainer := *p // contains the mutex but we' re safe here.
+ err := pluginObj.Activate(p)
if err != nil {
return errPluginActivate.Format(pName, err.Error())
}
- tempActivatedPluginsLen := len(tempPluginContainer.activatedPlugins)
- if tempActivatedPluginsLen != len(p.activatedPlugins)+tempActivatedPluginsLen+1 { // see test: plugin_test.go TestPluginActivate && TestPluginActivationError
- p.activatedPlugins = tempPluginContainer.activatedPlugins
- }
+ /*
+ tempActivatedPluginsLen := len(tempPluginContainer.activatedPlugins)
+ if tempActivatedPluginsLen != len(p.activatedPlugins)+tempActivatedPluginsLen+1 { // see test: plugin_test.go TestPluginActivate && TestPluginActivationError
+ p.activatedPlugins = tempPluginContainer.activatedPlugins
+ }*/
}
@@ -392,7 +393,7 @@ func (p *pluginContainer) Printf(format string, a ...interface{}) {
func (p *pluginContainer) fire(name string) int {
p.mu.Lock()
var times int
- // maybe unnessecary but for clarity reasons
+ // maybe unnecessary but for clarity reasons
if t, found := p.fired[name]; found {
times = t
}