| 74 | } |
| 75 | |
| 76 | const char* mime_node::header_value(const char* name) const { |
| 77 | ACL_ITER iter; |
| 78 | |
| 79 | acl_foreach(iter, m_pMimeNode->header_list) { |
| 80 | HEADER_NV* hdr = (HEADER_NV*) iter.data; |
| 81 | if (strcasecmp(hdr->name, name) == 0 && *hdr->value) { |
| 82 | return hdr->value; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | return NULL; |
| 87 | } |
| 88 | |
| 89 | const std::map<string, string>& mime_node::get_headers() const { |
| 90 | if (m_headers_ != NULL) { |
nothing calls this directly
no test coverage detected