Comments (3)
hey!
this was suposed to be catched by the Slim core (on the Slim\call() method) so that Slim echos the body immediately and stops any further transformations or callbacks (like trying to find a template or re-setting the content type)
I need to test if anything changed or if any server config might be doing this, meanwhile can you try using $app->response()->write();
instead of app->stop()
?
from slim-json-api.
Sorry for not updating earlier. It seems to be happening when I echo/print anything before calling $app->render(), which I guess would interfere with the headers and would be my fault not Slim's or JsonApi ;)
from slim-json-api.
Yeah, that might ruin the header assignment and output buffers too,
well, ok! thanks for the feedback!
from slim-json-api.
Related Issues (20)
- Allow OPTIONS requests to have an empty body HOT 1
- JSONP Support HOT 1
- Strict Mode errors HOT 3
- No distinction between array and object HOT 1
- Release? HOT 2
- problems with slim 2.6 - error template 200 not found HOT 3
- broken etags / 304 Not modified
- jsonp
- Slim 3.0 HOT 8
- Any chance of a new release? HOT 4
- Can not response with empty response or empty data object.
- support JSON API Specification
- function $app->notFound() not working on slim 2.6
- Slim 3 Class 'Slim\View' and 'Slim\Middleware' not found HOT 2
- Don't force dubug value !!
- Respect Developer Custom Exception
- ERROR: could not find driver HOT 6
- Declaration of JsonApiView::render() should be compatible with Slim\View::render($template, $data = NULL) HOT 3
- JsonApiView accessing undefined objects, method. HOT 9
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 slim-json-api.