| commit | 052b8b6c18edb9db317af86806d8e00ebaa94160 | [log] [tgz] |
|---|---|---|
| author | Justinas Stankevičius <justinas@users.noreply.github.com> | Thu May 12 16:42:31 2016 +0300 |
| committer | Justinas Stankevičius <justinas@users.noreply.github.com> | Thu May 12 16:42:31 2016 +0300 |
| tree | de9c6eed25396a6af8e7e08348ef075025def87c | |
| parent | 671ef6b31288a51b5517ba2f1349e781b91a4da3 [diff] | |
| parent | 3c7a8992f27ccbfd277df73fc6a1933a716da751 [diff] |
Merge pull request #29 from jkearse3/master Refactoring Chain.Then
diff --git a/chain.go b/chain.go index 7bb0e6f..c75f9c9 100644 --- a/chain.go +++ b/chain.go
@@ -47,8 +47,8 @@ h = http.DefaultServeMux } - for i := len(c.constructors) - 1; i >= 0; i-- { - h = c.constructors[i](h) + for i := range c.constructors { + h = c.constructors[len(c.constructors)-1-i](h) } return h