{"issue":{"state":"open","created_at":"2011-12-08T01:01:22Z","updated_at":"2011-12-08T01:02:36Z","comments":1,"user":{"gravatar_id":"dbd499ef24f9b96e2f9678f8ba93b672","id":34673,"url":"https://api.github.com/users/bigeasy","login":"bigeasy","avatar_url":"https://secure.gravatar.com/avatar/dbd499ef24f9b96e2f9678f8ba93b672?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"I'm using connect middleware components with Streamline.js, which expects a callback to follow the Node.js conventions, and to always be called.\r\n\r\nThe optional callback to `static.send` is called when a file is streamed. In this case, the callback is called where the `next` method would not be called. This indicates that the intent is to allow the caller to use `connect.send` as a standard Node.js callback function.\r\n\r\nHowever, there are other paths were the optional callback is not called and instead the `static.send` function returns. This is fine within the **connect** framework. It does not allow use in a program flow that is expecting a callback.","assignee":null,"id":2482455,"labels":[],"number":433,"pull_request":{"patch_url":"https://github.com/senchalabs/connect/pull/433.patch","html_url":"https://github.com/senchalabs/connect/pull/433","diff_url":"https://github.com/senchalabs/connect/pull/433.diff"},"title":"static.send should always call the optional callback when present.","html_url":"https://github.com/senchalabs/connect/issues/433","closed_at":null,"url":"https://api.github.com/repos/senchalabs/connect/issues/433","milestone":null},"action":"created","comment":{"created_at":"2011-12-08T01:02:36Z","updated_at":"2011-12-08T01:02:36Z","user":{"gravatar_id":"dbd499ef24f9b96e2f9678f8ba93b672","id":34673,"url":"https://api.github.com/users/bigeasy","login":"bigeasy","avatar_url":"https://secure.gravatar.com/avatar/dbd499ef24f9b96e2f9678f8ba93b672?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"Note that this patch was written on the 1.x branch.","id":3056312,"url":"https://api.github.com/repos/senchalabs/connect/issues/comments/3056312"}}