Git Product home page Git Product logo

Comments (7)

javierprovecho avatar javierprovecho commented on May 4, 2024

@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.

Iceyer avatar Iceyer commented on May 4, 2024

Abort accpet a http status code as input.

#22

from contrib.

rogierlommers avatar rogierlommers commented on May 4, 2024

When will this be merged?

from contrib.

javierprovecho avatar javierprovecho commented on May 4, 2024

@rogierlommers please check gin-gonic/gin#204. Thank you in advance.

from contrib.

rogierlommers avatar rogierlommers commented on May 4, 2024

@javierprovecho thanks! Very much appreciated...

from contrib.

javierprovecho avatar javierprovecho commented on May 4, 2024

@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.

janos avatar janos commented on May 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.