Skip to content

Commit

Permalink
another context workaround for chained handlers, not lars issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Dean Karn authored and Dean Karn committed Sep 19, 2016
1 parent 284dfc0 commit af0cb09
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
##LARS
<img align="right" src="https://raw.githubusercontent.com/go-playground/lars/master/examples/README/test.gif">
![Project status](https://img.shields.io/badge/version-3.4.0-green.svg)
![Project status](https://img.shields.io/badge/version-3.4.1-green.svg)
[![Build Status](https://semaphoreci.com/api/v1/projects/4351aa2d-2f94-40be-a6ef-85c248490378/679708/badge.svg)](https://semaphoreci.com/joeybloggs/lars)
[![Coverage Status](https://coveralls.io/repos/github/go-playground/lars/badge.svg?branch=master)](https://coveralls.io/github/go-playground/lars?branch=master)
[![Go Report Card](https://goreportcard.com/badge/go-playground/lars)](https://goreportcard.com/report/go-playground/lars)
Expand Down
2 changes: 2 additions & 0 deletions util.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ var NativeChainHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Re
c := GetContext(w)
b := c.BaseContext()

*b.request = *r

if b.index+1 < len(b.handlers) {
c.Next()
}
Expand Down

0 comments on commit af0cb09

Please sign in to comment.