Searched refs:content_type (Results 1 – 8 of 8) sorted by relevance
| /lighttpd1.4/src/ |
| H A D | http_range.c | 213 const buffer * const content_type = in http_range_multi() local 216 if (content_type) { in http_range_multi() 218 BUF_PTR_LEN(content_type)); in http_range_multi() 379 const buffer * const content_type = in http_range_rfc7233() 382 if (content_type in http_range_rfc7233() 383 && buffer_clen(content_type) >= sizeof("multipart/byteranges")-1 in http_range_rfc7233() 384 && buffer_eq_icase_ssn(content_type->ptr, "multipart/byteranges", in http_range_rfc7233()
|
| H A D | stat_cache.c | 825 if (sce->content_type.size) free(sce->content_type.ptr); in stat_cache_entry_free() 1010 if (!buffer_is_blank(&sce->content_type)) return &sce->content_type; in stat_cache_content_type_get_by_xattr() 1020 if (sce->content_type.size) { in stat_cache_content_type_get_by_xattr() 1024 sce->content_type.ptr = NULL; in stat_cache_content_type_get_by_xattr() 1035 buffer_clear(&sce->content_type); in stat_cache_content_type_get_by_xattr() 1037 return &sce->content_type; in stat_cache_content_type_get_by_xattr() 1046 if (!buffer_is_blank(&sce->content_type)) return &sce->content_type; in stat_cache_content_type_get_by_ext() 1055 sce->content_type.ptr = mtype->ptr; in stat_cache_content_type_get_by_ext() 1060 buffer_clear(&sce->content_type); in stat_cache_content_type_get_by_ext() 1062 return &sce->content_type; in stat_cache_content_type_get_by_ext() [all …]
|
| H A D | mod_dirlisting.c | 1187 const buffer *content_type; in http_list_directory() local 1189 content_type = NULL; in http_list_directory() 1192 content_type = stat_cache_mimetype_by_xattr(hctx->path); in http_list_directory() 1194 if (NULL == content_type) in http_list_directory() 1196 content_type = stat_cache_mimetype_by_ext(mimetypes, DIRLIST_ENT_NAME(tmp), tmp->namelen); in http_list_directory() 1197 if (NULL == content_type) { in http_list_directory() 1201 content_type = &octet_stream; in http_list_directory() 1216 ,{ BUF_PTR_LEN(content_type) } in http_list_directory()
|
| H A D | http-header-glue.c | 366 const buffer *content_type = NULL; in http_response_send_file() local 368 content_type = stat_cache_content_type_get(sce, r); in http_response_send_file() 369 if (__builtin_expect( (!content_type), 0) in http_response_send_file() 370 || __builtin_expect( (buffer_is_blank(content_type)), 0)) in http_response_send_file() 371 content_type = &octet_stream; in http_response_send_file() 374 BUF_PTR_LEN(content_type)); in http_response_send_file() 380 int allow_caching = (content_type != &octet_stream) in http_response_send_file()
|
| H A D | stat_cache.h | 23 buffer content_type; member
|
| H A D | response.c | 658 const buffer *content_type = stat_cache_content_type_get(sce, r); in http_response_static_errdoc() local 659 if (content_type) in http_response_static_errdoc() 662 BUF_PTR_LEN(content_type)); in http_response_static_errdoc()
|
| H A D | mod_ssi.c | 42 const buffer *content_type; member 113 pconf->content_type = cpv->v.b; in mod_ssi_merge_config_cpv() 1589 if (!p->conf.content_type) { in mod_ssi_handle_request() 1592 …set(r, HTTP_HEADER_CONTENT_TYPE, CONST_STR_LEN("Content-Type"), BUF_PTR_LEN(p->conf.content_type)); in mod_ssi_handle_request()
|
| H A D | mod_magnet.c | 499 const buffer *content_type = stat_cache_content_type_get(sce, r); in magnet_stat_field() local 500 if (content_type && !buffer_is_blank(content_type)) in magnet_stat_field() 501 lua_pushlstring(L, BUF_PTR_LEN(content_type)); in magnet_stat_field()
|