Searched refs:content_type (Results 1 – 9 of 9) sorted by relevance
| /mOS-networking-stack/samples/lighttpd-1.4.32/src/ |
| H A D | mod_compress.c | 726 buffer *content_type; in PHYSICALPATH_FUNC() local 779 content_type = NULL; in PHYSICALPATH_FUNC() 780 if (sce->content_type->ptr) { in PHYSICALPATH_FUNC() 782 if ( (c = strchr(sce->content_type->ptr, ';')) != NULL) { in PHYSICALPATH_FUNC() 783 content_type = srv->tmp_buf; in PHYSICALPATH_FUNC() 784 buffer_copy_string_len(content_type, sce->content_type->ptr, c - sce->content_type->ptr); in PHYSICALPATH_FUNC() 797 if (buffer_is_equal(compress_ds->value, sce->content_type) in PHYSICALPATH_FUNC() 798 || (content_type && buffer_is_equal(compress_ds->value, content_type))) { in PHYSICALPATH_FUNC() 843 …sponse_header_overwrite(srv, con, CONST_STR_LEN("Content-Type"), CONST_BUF_LEN(sce->content_type)); in PHYSICALPATH_FUNC() 878 …sponse_header_overwrite(srv, con, CONST_STR_LEN("Content-Type"), CONST_BUF_LEN(sce->content_type)); in PHYSICALPATH_FUNC() [all …]
|
| H A D | stat_cache.c | 129 sce->content_type = buffer_init(); in stat_cache_entry_init() 140 buffer_free(sce->content_type); in stat_cache_entry_free() 599 buffer_reset(sce->content_type); in stat_cache_get_entry() 602 stat_cache_attr_get(sce->content_type, name->ptr); in stat_cache_get_entry() 606 if (buffer_is_empty(sce->content_type)) { in stat_cache_get_entry() 617 buffer_copy_string_buffer(sce->content_type, ds->value); in stat_cache_get_entry()
|
| H A D | mod_staticfile.c | 162 buffer *content_type = NULL; in http_response_parse_range() local 174 content_type = ds->value; in http_response_parse_range() 304 buffer_append_string_buffer(b, content_type); in http_response_parse_range() 452 if (buffer_is_empty(sce->content_type)) { in URIHANDLER_FUNC() 463 …sponse_header_overwrite(srv, con, CONST_STR_LEN("Content-Type"), CONST_BUF_LEN(sce->content_type)); in URIHANDLER_FUNC()
|
| H A D | mod_dirlisting.c | 645 const char *content_type; in http_list_directory() local 818 content_type = NULL; in http_list_directory() 826 content_type = attrval; in http_list_directory() 831 if (content_type == NULL) { in http_list_directory() 832 content_type = "application/octet-stream"; in http_list_directory() 845 content_type = ds->value->ptr; in http_list_directory() 868 buffer_append_string(out, content_type); in http_list_directory()
|
| H A D | mod_ssi.c | 73 buffer_free(s->content_type); in FREE_FUNC() 118 s->content_type = buffer_init(); in SETDEFAULTS_FUNC() 121 cv[1].destination = s->content_type; in SETDEFAULTS_FUNC() 1075 if (p->conf.content_type->used <= 1) { in mod_ssi_handle_request() 1078 …nse_header_overwrite(srv, con, CONST_STR_LEN("Content-Type"), CONST_BUF_LEN(p->conf.content_type)); in mod_ssi_handle_request() 1118 PATCH(content_type); in mod_ssi_patch_connection() 1135 PATCH(content_type); in mod_ssi_patch_connection()
|
| H A D | mod_ssi.h | 18 buffer *content_type; member
|
| H A D | mod_magnet.c | 334 if (!buffer_is_empty(sce->content_type)) { in magnet_stat() 335 lua_pushlstring(L, sce->content_type->ptr, sce->content_type->used - 1); in magnet_stat()
|
| H A D | base.h | 234 buffer *content_type; member
|
| H A D | connections.c | 520 …sponse_header_overwrite(srv, con, CONST_STR_LEN("Content-Type"), CONST_BUF_LEN(sce->content_type));
|