diff options
author | Stef Walter <stef@memberwebs.com> | 2004-05-07 22:02:29 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-05-07 22:02:29 +0000 |
commit | 80b0e2c0fdad108454ae87130496f595f0b81b81 (patch) | |
tree | 696ce7e9010f412ce4e988e4d88553b19e2e42a8 /common/buffer.c | |
parent | 0bc8575dbfb281f5f5e9fb530247d29ba1f296fc (diff) |
- Reworked the internal API
- Added common functions for trimming
- Debugging
- Reworked the module to the new protocol
Diffstat (limited to 'common/buffer.c')
-rw-r--r-- | common/buffer.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/common/buffer.c b/common/buffer.c index 72f0b6c..5a77922 100644 --- a/common/buffer.c +++ b/common/buffer.c @@ -1,6 +1,7 @@ #include "usuals.h" #include "httpauthd.h" +#include "stringx.h" #include <syslog.h> @@ -316,10 +317,7 @@ char* ha_bufparseline(ha_buffer_t* buf, int trim) buf->_pp = t + 1; if(trim) - { - while(t > line && isspace(*(--t))) - *t = 0; - } + line = trim_space(line); /* We don't return empty strings */ if(line[0] == 0) |