Comments (10)
All right , now all work well and the result is correct ,thanks
from gearbox.
Hey 👋 Thanks for reporting that. We are investigating this issue right now
from gearbox.
@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.
go1.15.7.linux-386
from gearbox.
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.
@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.
Ok, thanks
from gearbox.
When i remove
gb.Use(logMiddleware)
,it works well and has the right result, but thecurl http://localhost:3000/api/account/deloutput:
Deleted
it should returnMethod 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.
@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.
You are welcome :-)
from gearbox.
Related Issues (20)
- Datadog support APM
- Prometheus middleware HOT 2
- CORS support HOT 1
- broken link to your docs HOT 1
- Add a render method to the context interface. HOT 1
- Is this project alive? HOT 3
- can you remove virus link from project description? HOT 1
- gogearbox.com is a redirect to malware filled ads HOT 1
- Introduce an implementation for workers in Gearbox HOT 2
- SSL support. HOT 3
- Add validation for max params count and request url length HOT 1
- Improve current router implementation HOT 1
- Automatically handle OPTIONS request made by browsers HOT 1
- wrap standard net/http handler HOT 2
- Pass data from middleware to handler HOT 2
- Participate in the Tech Empower benchmark HOT 2
- runtime error: slice bounds out of range [1:0] HOT 2
- add embed example for go 1.16 HOT 1
- Set custom error handlers HOT 7
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 gearbox.