1
Fork 0

net::http::header_set: rename from set_header

This commit is contained in:
Drew DeVault 2023-02-10 14:28:25 +01:00
parent 0eef917610
commit 4ce86752b3

View file

@ -16,7 +16,7 @@ export fn header_add(head: *header, name: str, val: str) void = {
// Sets the value of a given HTTP header, removing any previous values. The name
// should be canonicalized by the caller.
export fn set_header(head: *header, name: str, val: str) void = {
export fn header_set(head: *header, name: str, val: str) void = {
header_del(head, name);
header_add(head, name, val);
};