Comments (5)
Related to https://github.com/harmoni/hmote/commit/1e99537d0fb503d77fc57cb43722abcd3c1ee2d4
from cuba.
Related to 436c10c
from cuba.
@dkullmann the way I read the code is if status is set cuba does not touch the content-type or the otherway around if you set the status you also need to set the content-type
sounds fair to me.
from cuba.
There's an experimental feature in master that may alleviate this problem. Instead of only setting the status code to 404, Cuba calls the not_found
method, which by default only sets the status code to 404. With this change, it is now possible to redefine not_found
so it can set the headers and body in case of a 404.
from cuba.
Closing this issue as the not_found
hook landed on version 3.5.0. Let me know if it needs to be reopened.
from cuba.
Related Issues (20)
- rack 3.0 support HOT 5
- Missing rack session in v4 HOT 2
- Support passing keyword arguments to middlewares HOT 3
- How about defining secure headers in lower case to match the HTTP/2 specification? HOT 3
- is there any api for logger HOT 1
- Strict-Transport-Security header in Cuba::Safe::SecureHeaders is dangerously strict! HOT 8
- Allow Param defaults to be an empty string? HOT 2
- Not all HTTP methods are supported HOT 2
- [Suggestion] Adds support for beerpay.io HOT 1
- Having issues with cuba safe HOT 9
- Rack 2.0 support? HOT 1
- Reference in Readme to Cuba::TextHelpers HOT 4
- Serving static files using Rack::Static not working HOT 3
- Allow multi mount routes on define HOT 2
- Improve performance by caching regexes? HOT 3
- Optional query parameters HOT 6
- Custom res.staus stops rendering on chrome. HOT 5
- undefined method `DelegateClass' for Rack::Session::Cookie:Class (NoMethodError) HOT 3
- wrong number of arguments (given 0, expected 1..2) when upload file HOT 2
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 cuba.