Skip to content
This repository was archived by the owner on Feb 6, 2020. It is now read-only.

Commit ff59977

Browse files
committed
http_message_set_header -> http_message_append_header
1 parent 6e1a8b3 commit ff59977

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

http.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ http_message* http_response(int status_code, const char* reason_phrase);
4444
// Append a new header to the message if a field with
4545
// this name does not yet exist. If it already exists then
4646
// the new value will be appended follow RFC2616 4.2 guidelines.
47-
void http_message_set_header(http_message* msg, const char* name, const char* value);
47+
void http_message_append_header(http_message* msg, const char* name, const char* value);
4848

4949
// Set a stream callback for reading or writing the message body.
5050
// A parsed (incoming) message will read while a composed (outgoing)

0 commit comments

Comments
 (0)