brokenhttpd/src/content-bozo.c
/* match a suffix on a file - dynamiconly means no static content search */
match a suffix on a file - dynamiconly means no static content search
match a suffix on a file - dynamiconly means no static content search
bozo_content_map_t *
bozo_match_content_map(bozohttpd_t *httpd, const char *name,
			const int dynamiconly)
{
	bozo_content_map_t	*map;
	size_t			 len;
	len = strlen(name);
	if ((map = search_map(httpd->dynamic_content_map, name, len)) != NULL) {
		return map;
	}
	if (!dynamiconly) {
		if ((map = search_map(static_content_map, name, len)) != NULL) {
			return map;
		}
	}
	return NULL;
}
bozo_content_map_t * bozo_match_content_map ( bozohttpd_t * httpd , const char * name , const int dynamiconly ) { bozo_content_map_t * map ; size_t len ; len = strlen ( name ) ; if ( ( map = search_map ( httpd -> dynamic_content_map , name , len ) ) != NULL ) { return map ; } if ( ! dynamiconly ) { if ( ( map = search_map ( static_content_map , name , len ) ) != NULL ) { return map ; } } return NULL ; }
match a suffix on a file - dynamiconly means no static content search
match a suffix on a file - dynamiconly means no static content search