Lines Matching refs:default_header
341 SAPI_API void sapi_get_default_content_type_header(sapi_header_struct *default_header) in sapi_get_default_content_type_header() argument
345 default_header->header = get_default_content_type(sizeof("Content-type: ")-1, &len); in sapi_get_default_content_type_header()
346 default_header->header_len = len; in sapi_get_default_content_type_header()
347 memcpy(default_header->header, "Content-type: ", sizeof("Content-type: ") - 1); in sapi_get_default_content_type_header()
851 sapi_header_struct default_header; in sapi_send_headers() local
855 default_header.header_len = sizeof("Content-type: ") - 1 + len; in sapi_send_headers()
856 default_header.header = emalloc(default_header.header_len + 1); in sapi_send_headers()
858 memcpy(default_header.header, "Content-type: ", sizeof("Content-type: ") - 1); in sapi_send_headers()
859 memcpy(default_header.header + sizeof("Content-type: ") - 1, SG(sapi_headers).mimetype, len + 1); in sapi_send_headers()
861 sapi_header_add_op(SAPI_HEADER_ADD, &default_header); in sapi_send_headers()
903 sapi_header_struct default_header; in sapi_send_headers() local
905 sapi_get_default_content_type_header(&default_header); in sapi_send_headers()
906 sapi_module.send_header(&default_header, SG(server_context)); in sapi_send_headers()
907 sapi_free_header(&default_header); in sapi_send_headers()