Skip to content

Commit af0cb09

Browse files
Dean KarnDean Karn
authored andcommitted
another context workaround for chained handlers, not lars issue
1 parent 284dfc0 commit af0cb09

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
##LARS
22
<img align="right" src="https://github.com/raw/go-playground/lars/master/examples/README/test.gif">
3-
![Project status](https://img.shields.io/badge/version-3.4.0-green.svg)
3+
![Project status](https://img.shields.io/badge/version-3.4.1-green.svg)
44
[![Build Status](https://semaphoreci.com/api/v1/projects/4351aa2d-2f94-40be-a6ef-85c248490378/679708/badge.svg)](https://semaphoreci.com/joeybloggs/lars)
55
[![Coverage Status](https://coveralls.io/repos/github/go-playground/lars/badge.svg?branch=master)](https://coveralls.io/github/go-playground/lars?branch=master)
66
[![Go Report Card](https://goreportcard.com/badge/go-playground/lars)](https://goreportcard.com/report/go-playground/lars)

util.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ var NativeChainHandler = http.HandlerFunc(func(w http.ResponseWriter, r *http.Re
1515
c := GetContext(w)
1616
b := c.BaseContext()
1717

18+
*b.request = *r
19+
1820
if b.index+1 < len(b.handlers) {
1921
c.Next()
2022
}

0 commit comments

Comments
 (0)