Pretty small change, but I needed getOnly to be false on a recent project, and found that it was hard coded to true. Fixed up options merging and made getOnly configurable.
Middleware static - Properly merge options. Allow getOnly to be confi…
for what? POSTing to a static file etc is kinda weird
Yeah, I agree it sounds dumb, but we're using some static JSON files as "fixtures" for the unit tests on our framework. So our unit tests would attempt to POST to the static JSON file which would emulate a restful update. No big deal if you dont want to merge it in, but there was still a bug in the way options were being merged, so that's fixed too.
@visionmedia, this fix would be benefical for handling Facebook Canvas authentication, where OAuth tokens come in POST but you should render the page as well, which could be a static file (e.g. with client side mvc)
I'd like to highlight this issue again. I'm trying to set up headless unit tests using PhantomJS for CanJS, but they're failing because we can't use our fixtures with Connect. All I'm asking is that connect acts like other server software where posting to a static file still loads the static file. I dont want to have to comment out lines every time I set up the project. Thanks.
it's been broken down into https://github.com/visionmedia/send so now you can do whatever you want, if you're using express there's res.sendfile() which is the same thing with a nicer api
way old. probably belongs in https://github.com/visionmedia/send now if anything