From af0cb097c30220df3e98499bb776cf260a4bc69f Mon Sep 17 00:00:00 2001 From: Dean Karn Date: Mon, 19 Sep 2016 10:29:08 -0400 Subject: [PATCH] another context workaround for chained handlers, not lars issue --- README.md | 2 +- util.go | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 35cff6a..244b6ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ##LARS -![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) diff --git a/util.go b/util.go index f0dc9bf..977d613 100644 --- a/util.go +++ b/util.go @@ -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() }