Comments (7)
@adamjcook thank you for discovering this. I forgot completely about GoDeps. You can submit a pull request with updated GoDeps if you wish. I'll review it as soon as available. I'll update the other GoDeps' packages also.
from contrib.
Abort accpet a http status code as input.
from contrib.
When will this be merged?
from contrib.
@rogierlommers please check gin-gonic/gin#204. Thank you in advance.
from contrib.
@javierprovecho thanks! Very much appreciated...
from contrib.
@rogierlommers @adamjcook @winterm @Iceyer sorry for this. There was an unsync between master and develop at main repository of Gin. By the time of publishing v0.5 RC, it was solved, however you will need to update your Gin version to latest. You can do it like:
go get -u github.com/gin-gonic/gin
If that's not working, please delete folder from $GOPATH
and go get ...
again. Also I want to remember that Gin only supports Go version >= 1.3.
If you need any assistance, please drop a response.
from contrib.
Hi, after removing c.Abort(), if any handler continues to process the request, it ends with warning "Headers were already written!" and invalid (combined) response.
Basic example:
r := gin.New()
r.Use(static.Serve("/static"), static.LocalFile("/tmp", false))
r.GET("/:category/:post", func(c ...
Breaking the chain is important in this case and it is fixing this issue.
from contrib.
Related Issues (20)
- [WIP] Move all middleware into separate repos on gin-contrib org HOT 8
- Package dependencies HOT 1
- Add the authorization middleware HOT 4
- Fix logrus import in ginrus (due to rename) HOT 3
- session Options is not working HOT 10
- Add the rollbar middleware HOT 2
- Duration for a valid JWT token
- JWT force token expiration HOT 1
- commonlog
- [SOLVED] gin-contrib has gone? HOT 6
- `time` attribute duplicated in logrus/ginrus entry HOT 3
- auto update
- expir
- What is the license? HOT 1
- how to get x-response-time and write it in the http header with gin? HOT 2
- [QUESTION] sessions: Session `Get` method HOT 2
- Broken link in the "About" section HOT 1
- add support for samesite options HOT 1
- Remove repository with stolen source code
- the github page were 404 not found
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from contrib.