Skip to content

Commit 2cd51ef

Browse files
trentmry
authored andcommitted
"Trailer" header should mention "Content-MD5" trailer name in this example.
Fixes #2107
1 parent 3222a04 commit 2cd51ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/api/http.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ Note that HTTP requires the `Trailer` header to be sent if you intend to
358358
emit trailers, with a list of the header fields in its value. E.g.,
359359

360360
response.writeHead(200, { 'Content-Type': 'text/plain',
361-
'Trailer': 'TraceInfo' });
361+
'Trailer': 'Content-MD5' });
362362
response.write(fileData);
363363
response.addTrailers({'Content-MD5': "7895bf4b8828b55ceaf47747b4bca667"});
364364
response.end();

0 commit comments

Comments
 (0)