| 165 | } |
| 166 | |
| 167 | const char* mime_head::header_value(const char* name) const |
| 168 | { |
| 169 | if (m_headers == NULL) { |
| 170 | return NULL; |
| 171 | } |
| 172 | std::list<HEADER*>::const_iterator cit = m_headers->begin(); |
| 173 | for (; cit != m_headers->end(); ++cit) { |
| 174 | if (strcasecmp((*cit)->name, name) == 0) { |
| 175 | return (*cit)->value; |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | return NULL; |
| 180 | } |
| 181 | |
| 182 | int mime_head::header_values(const char* name, std::list<const char*>* values) const |
| 183 | { |
no test coverage detected