| 1257 | } |
| 1258 | |
| 1259 | void http_client::sprint_header(string& out, const char* prompt /* = NULL */) |
| 1260 | { |
| 1261 | ACL_VSTRING* bf = out.vstring(); |
| 1262 | if (bf == NULL) { |
| 1263 | logger_error("vstring null"); |
| 1264 | return; |
| 1265 | } |
| 1266 | if (hdr_res_) { |
| 1267 | http_hdr_sprint(bf, &hdr_res_->hdr, prompt); |
| 1268 | } else if (hdr_req_) { |
| 1269 | http_hdr_sprint(bf, &hdr_req_->hdr, prompt); |
| 1270 | } |
| 1271 | } |
| 1272 | |
| 1273 | } // namespace acl |
no test coverage detected