Skip to content
Browse files

Merge pull request #208 from tomykaira/comment_fix

Comment fix
  • Loading branch information...
2 parents 43ab31f + c08875e commit 9a6dc183d3c8ca6883ac5b0cf3119444bdd50d88 @igrigorik igrigorik committed Sep 25, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 examples/stream.rb
  2. +2 −2 lib/goliath/request.rb
View
6 examples/stream.rb
@@ -2,9 +2,9 @@
$:<< '../lib' << 'lib'
#
-# A simple HTTP streaming API which returns a 200 response for any GET request
-# and then emits numbers 1 through 10 in 1 second intervals, and then closes the
-# connection.
+# A simple HTTP streaming API which returns a 202 (Accepted) response for any
+# GET request and then emits numbers 1 through 10 in 1 second intervals, and
+# then closes the connection.
#
# A good use case for this pattern would be to provide a stream of updates or a
# 'firehose' like API to stream data back to the clients. Simply hook up to your
View
4 lib/goliath/request.rb
@@ -69,7 +69,7 @@ def initialize(app, conn, env)
# This method is invoked only once per request.
#
# @param h [Hash] Request headers
- # @param parser [Http::Parser] The parsed used to parse the request
+ # @param parser [Http::Parser] The parser used to parse the request
# @return [Nil]
def parse_header(h, parser)
h.each do |k, v|
@@ -174,7 +174,7 @@ def process
# Sending of the data is deferred until the request
# is marked as ready to push data by the connection.
# Hence, two pipelined requests can come in via same
- # connection, first can take take 1s to render, while
+ # connection, first can take 1s to render, while
# second may take 0.5. Because HTTP spec does not
# allow for interleaved data exchange, we block the
# second request until the first one is done and the

0 comments on commit 9a6dc18

Please sign in to comment.
Something went wrong with that request. Please try again.