Lines Matching refs:default_header
347 SAPI_API void sapi_get_default_content_type_header(sapi_header_struct *default_header) in sapi_get_default_content_type_header() argument
351 default_header->header = get_default_content_type(sizeof("Content-type: ")-1, &len); in sapi_get_default_content_type_header()
352 default_header->header_len = len; in sapi_get_default_content_type_header()
353 memcpy(default_header->header, "Content-type: ", sizeof("Content-type: ") - 1); in sapi_get_default_content_type_header()
860 sapi_header_struct default_header; in sapi_send_headers() local
864 default_header.header_len = sizeof("Content-type: ") - 1 + len; in sapi_send_headers()
865 default_header.header = emalloc(default_header.header_len + 1); in sapi_send_headers()
867 memcpy(default_header.header, "Content-type: ", sizeof("Content-type: ") - 1); in sapi_send_headers()
868 memcpy(default_header.header + sizeof("Content-type: ") - 1, SG(sapi_headers).mimetype, len + 1); in sapi_send_headers()
870 sapi_header_add_op(SAPI_HEADER_ADD, &default_header); in sapi_send_headers()
912 sapi_header_struct default_header; in sapi_send_headers() local
914 sapi_get_default_content_type_header(&default_header); in sapi_send_headers()
915 sapi_module.send_header(&default_header, SG(server_context)); in sapi_send_headers()
916 sapi_free_header(&default_header); in sapi_send_headers()