| 259 | } |
| 260 | |
| 261 | static void add_cl(apr_pool_t *p, |
| 262 | apr_bucket_alloc_t *bucket_alloc, |
| 263 | apr_bucket_brigade *header_brigade, |
| 264 | const char *cl_val) |
| 265 | { |
| 266 | apr_bucket *e; |
| 267 | char *buf; |
| 268 | |
| 269 | buf = apr_pstrcat(p, "Content-Length: ", |
| 270 | cl_val, |
| 271 | CRLF, |
| 272 | NULL); |
| 273 | ap_xlate_proto_to_ascii(buf, strlen(buf)); |
| 274 | e = apr_bucket_pool_create(buf, strlen(buf), p, bucket_alloc); |
| 275 | APR_BRIGADE_INSERT_TAIL(header_brigade, e); |
| 276 | } |
| 277 | |
| 278 | #ifndef CRLF_ASCII |
| 279 | #define CRLF_ASCII "\015\012" |
no test coverage detected