mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
fix typo in method name [ci skip]
This commit is contained in:
parent
fa9e4970ea
commit
341151da5b
1 changed files with 1 additions and 1 deletions
|
@ -1029,7 +1029,7 @@ There are a couple of things to notice in the above example. We need to make
|
||||||
sure to close the response stream. Forgetting to close the stream will leave
|
sure to close the response stream. Forgetting to close the stream will leave
|
||||||
the socket open forever. We also have to set the content type to `text/event-stream`
|
the socket open forever. We also have to set the content type to `text/event-stream`
|
||||||
before we write to the response stream. This is because headers cannot be written
|
before we write to the response stream. This is because headers cannot be written
|
||||||
after the response has been committed (when `response.committed` returns a truthy
|
after the response has been committed (when `response.committed?` returns a truthy
|
||||||
value), which occurs when you `write` or `commit` the response stream.
|
value), which occurs when you `write` or `commit` the response stream.
|
||||||
|
|
||||||
#### Example Usage
|
#### Example Usage
|
||||||
|
|
Loading…
Reference in a new issue