Skip to content

Commit

Permalink
Corrected the status code returned for async in the example apps
Browse files Browse the repository at this point in the history
  • Loading branch information
raggi committed Sep 10, 2008
1 parent 1430dc5 commit d8c4afb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion example/async_app.ru
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ end
class AsyncApp

# This is a template async response. N.B. Can't use string for body on 1.9
AsyncResponse = [100, {}, []].freeze
AsyncResponse = [-1, {}, []].freeze

def call(env)

Expand Down
2 changes: 1 addition & 1 deletion example/async_chat.ru
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ end

class AsyncChat

AsyncResponse = [100, {}, []].freeze
AsyncResponse = [-1, {}, []].freeze
AjaxResponse = [200, {}, []].freeze

def initialize
Expand Down
2 changes: 1 addition & 1 deletion example/async_tailer.ru
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ end

class AsyncTailer

AsyncResponse = [100, {}, []].freeze
AsyncResponse = [-1, {}, []].freeze

def call(env)

Expand Down

0 comments on commit d8c4afb

Please sign in to comment.