| 199 | } |
| 200 | |
| 201 | const http_mime_node* http_mime::get_node(const char* name) const { |
| 202 | (void) get_nodes(); |
| 203 | |
| 204 | for (std::list<http_mime_node*>::const_iterator cit = mime_nodes_.begin(); |
| 205 | cit != mime_nodes_.end(); ++cit) { |
| 206 | const char *ptr = (*cit)->get_name(); |
| 207 | if (ptr && strcmp(ptr, name) == 0) { |
| 208 | return *cit; |
| 209 | } |
| 210 | } |
| 211 | |
| 212 | return NULL; |
| 213 | } |
| 214 | |
| 215 | //////////////////////////////////////////////////////////////////////////////// |
| 216 |