]> granicus.if.org Git - apache/commit
Avoid redundant strlen() calls by using apr_brigade_write() instead of
authorCliff Woolley <jwoolley@apache.org>
Sun, 8 Jul 2001 06:24:55 +0000 (06:24 +0000)
committerCliff Woolley <jwoolley@apache.org>
Sun, 8 Jul 2001 06:24:55 +0000 (06:24 +0000)
commitc721f48845b5a262a49e8ae7b1e71134cd996103
tree077ad41496f9a3ada2ec5e00af4b32bcc3c47e21
parent3c43928e9e04d94acffceaa6946fae2f414a6682
Avoid redundant strlen() calls by using apr_brigade_write() instead of
apr_brigade_puts().  There is still some redundancy--it'd be ideal if there
were an apr_pstrcat() variant that returned the length of the string since
it computes it (twice) anyway so we didn't have to do it yet again.  Until
such a beast exists, computing the length three times is better than four.
:-/

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89516 13f79535-47bb-0310-9956-ffa450edef68
modules/http/http_protocol.c