1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-29 01:45:34 +00:00

text/plain mime type for pager mode.

This commit is contained in:
Witold Filipczyk 2010-07-18 05:11:13 +02:00 committed by Witold Filipczyk
parent cb6556302c
commit 13f1c878ac

View File

@ -311,6 +311,11 @@ get_content_type(struct cache_entry *cached)
debug_ctype(get_default_mime_type());
/* text/plain for pager mode */
if (cached->uri && cached->uri->string
&& !strcmp(cached->uri->string, "file:///dev/stdin")) {
cached->content_type = stracpy("text/plain");
} else
/* Fallback.. use some hardwired default */
cached->content_type = stracpy(get_default_mime_type());