Ejemplo n.º 1
0
void http_hdr_res_init(HTTP_HDR_RES *hdr_res, int status)
{
	const char *ptr;

	ptr = http_status_line(status);
	http_hdr_put_str(&hdr_res->hdr, "HTTP/1.1", ptr);
	http_hdr_put_str(&hdr_res->hdr, "Server", "acl_httpd");
}
Ejemplo n.º 2
0
static void
fdstream_head (http_request * request, params_t * request_headers, const char ** status_line,
		params_t ** response_headers, void * data)
{
	struct fdstream * st = (struct fdstream *)data;
	params_t * r = *response_headers;

        *status_line = http_status_line (HTTP_STATUS_OK);

        r = params_append (r, "Content-Type", (char *)st->content_type);
}