Skip to content

Commit adc0206

Browse files
cistovchrisdickinson
authored andcommitted
doc: fix typos in http.markdown
PR-URL: nodejs/node-v0.x-archive#4784 Reviewed-by: Chris Dickinson <christopher.s.dickinson@gmail.com>
1 parent 0fef250 commit adc0206

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

doc/api/http.markdown

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ sent to the server on that socket.
155155

156156
`function (exception, socket) { }`
157157

158-
If a client connection emits an 'error' event - it will forwarded here.
158+
If a client connection emits an 'error' event, it will be forwarded here.
159159

160160
`socket` is the `net.Socket` object that the error originated from.
161161

@@ -295,7 +295,7 @@ be called before [response.end()][] is called.
295295
If you call [response.write()][] or [response.end()][] before calling this, the
296296
implicit/mutable headers will be calculated and call this function for you.
297297

298-
Note: that Content-Length is given in bytes not characters. The above example
298+
Note that Content-Length is given in bytes not characters. The above example
299299
works because the string `'hello world'` contains only single byte characters.
300300
If the body contains higher coded characters then `Buffer.byteLength()`
301301
should be used to determine the number of bytes in a given encoding.
@@ -412,7 +412,7 @@ first chunk of body.
412412

413413
Returns `true` if the entire data was flushed successfully to the kernel
414414
buffer. Returns `false` if all or part of the data was queued in user memory.
415-
`'drain'` will be emitted when the buffer is again free.
415+
`'drain'` will be emitted when the buffer is free again.
416416

417417
### response.addTrailers(headers)
418418

@@ -921,7 +921,7 @@ following additional events, methods, and properties.
921921

922922
`function () { }`
923923

924-
Indicates that the underlaying connection was closed.
924+
Indicates that the underlying connection was closed.
925925
Just like `'end'`, this event occurs only once per response.
926926

927927
### message.httpVersion

0 commit comments

Comments
 (0)