about.c

来自「一个很有名的浏览器」· C语言 代码 · 共 33 行

C
33
字号
/* Pseudo about: protocol implementation *//* $Id: about.c,v 1.8 2004/08/14 05:59:17 jonas Exp $ */#ifdef HAVE_CONFIG_H#include "config.h"#endif#include "elinks.h"#include "cache/cache.h"#include "protocol/about.h"#include "protocol/protocol.h"#include "sched/connection.h"#include "util/string.h"voidabout_protocol_handler(struct connection *conn){	struct cache_entry *cached = get_cache_entry(conn->uri);	/* Only do this the first time */	if (cached && !cached->content_type) {		cached->incomplete = 0;		/* Set content to known type */		mem_free_set(&cached->content_type, stracpy("text/html"));	}	conn->cached = cached;	abort_conn_with_state(conn, S_OK);}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?