Giter VIP home page Giter VIP logo

Comments (10)

tomasky avatar tomasky commented on June 14, 2024 1

All right , now all work well and the result is correct ,thanks

from gearbox.

abahmed avatar abahmed commented on June 14, 2024

Hey 👋 Thanks for reporting that. We are investigating this issue right now

from gearbox.

abahmed avatar abahmed commented on June 14, 2024

@tomasky Which version of go do you use (go1.15.7.linux-386 or go1.15.7.linux-amd64)?
You can get that using go version

from gearbox.

tomasky avatar tomasky commented on June 14, 2024

go1.15.7.linux-386

from gearbox.

tomasky avatar tomasky commented on June 14, 2024

When i remove gb.Use(logMiddleware) ,it works well and has the right result, but the

curl http://localhost:3000/api/account/del

output: Deleted
it should return Method Not Allowed

from gearbox.

abahmed avatar abahmed commented on June 14, 2024

@tomasky Managed to reproduce that on go1.15.7.linux-386 and trying to investigate that, BTW, it works on go1.15.7.linux-amd64

from gearbox.

tomasky avatar tomasky commented on June 14, 2024

Ok, thanks

from gearbox.

abahmed avatar abahmed commented on June 14, 2024

When i remove gb.Use(logMiddleware) ,it works well and has the right result, but the

curl http://localhost:3000/api/account/del

output: Deleted
it should return Method Not Allowed

@tomasky
to enable Method Not Allowed, you need to configure it from settings as it's not enabled by default

gb := gearbox.New(&gearbox.Settings{ HandleMethodNotAllowed: true, })

from gearbox.

abahmed avatar abahmed commented on June 14, 2024

@tomasky Gearbox v1.1.2 is released. It includes the fix for your issue. Please update your x86 system to it and confirm if your issue is resolved

from gearbox.

abahmed avatar abahmed commented on June 14, 2024

You are welcome :-)

from gearbox.

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.