brokenhttpd/src/content-bozo.c
/*
 * given the file name, return a valid Content-Encoding: value.
 */
given the file name, return a valid Content-Encoding: value.
given the file name return a valid Content - Encoding : value .
const char *
bozo_content_encoding(bozo_httpreq_t *request, const char *file)
{
	bozohttpd_t *httpd = request->hr_httpd;
	bozo_content_map_t	*map;
	map = bozo_match_content_map(httpd, file, 0);
	if (map)
		return (request->hr_proto == httpd->consts.http_11) ?
		    map->encoding11 : map->encoding;
	return NULL;
}
const char * bozo_content_encoding ( bozo_httpreq_t * request , const char * file ) { bozohttpd_t * httpd = request -> hr_httpd ; bozo_content_map_t * map ; map = bozo_match_content_map ( httpd , file , 0 ) ; if ( map ) return ( request -> hr_proto == httpd -> consts . http_11 ) ? map -> encoding11 : map -> encoding ; return NULL ; }
given the file name, return a valid Content-Encoding: value.
given the file name return a valid Content - Encoding : value .