| 1156 | } |
| 1157 | |
| 1158 | char * |
| 1159 | HttpBodyTemplate::build_instantiated_buffer(HttpTransact::State *context, int64_t *buflen_return) |
| 1160 | { |
| 1161 | char *buffer = nullptr; |
| 1162 | |
| 1163 | Dbg(dbg_ctl_body_factory_instantiation, " before instantiation: [%s]", template_buffer); |
| 1164 | |
| 1165 | LogAccess la(context->state_machine); |
| 1166 | |
| 1167 | buffer = resolve_logfield_string(&la, template_buffer); |
| 1168 | |
| 1169 | *buflen_return = ((buffer == nullptr) ? 0 : strlen(buffer)); |
| 1170 | Dbg(dbg_ctl_body_factory_instantiation, " after instantiation: [%s]", buffer); |
| 1171 | Dbg(dbg_ctl_body_factory, " returning %" PRId64 " byte instantiated buffer", *buflen_return); |
| 1172 | |
| 1173 | return buffer; |
| 1174 | } |
no test coverage detected