diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2021-03-24 21:39:08 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2021-04-02 01:16:40 -0400 |
commit | dc01487ea6211337fbe632f0c8921d2efaa457eb (patch) | |
tree | 4c98f6237905fbba0c4b41b31da7eaacceecb3c8 /src/http_range.c | |
parent | b4310877ac50c8c0cfa032debe1ca4011385f418 (diff) | |
download | lighttpd-git-dc01487ea6211337fbe632f0c8921d2efaa457eb.tar.gz |
[multiple] use buffer_append_* aggregates
reduces the number of round-trips into some frequently-called routines
Diffstat (limited to 'src/http_range.c')
-rw-r--r-- | src/http_range.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http_range.c b/src/http_range.c index 52d6e17b..2414ca4f 100644 --- a/src/http_range.c +++ b/src/http_range.c @@ -207,8 +207,8 @@ http_range_multi (request_st * const r, http_header_response_get(r, HTTP_HEADER_CONTENT_TYPE, CONST_STR_LEN("Content-Type")); if (content_type) { - buffer_append_string_len(tb, CONST_STR_LEN("\r\nContent-Type: ")); - buffer_append_string_len(tb, CONST_BUF_LEN(content_type)); + buffer_append_str2(tb, CONST_STR_LEN("\r\nContent-Type: "), + CONST_BUF_LEN(content_type)); } buffer_append_string_len(tb,CONST_STR_LEN("\r\nContent-Range: bytes ")); const uint32_t prefix_len = buffer_string_length(tb); |