1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05: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,8 +311,13 @@ get_content_type(struct cache_entry *cached)
debug_ctype(get_default_mime_type()); debug_ctype(get_default_mime_type());
/* Fallback.. use some hardwired default */ /* text/plain for pager mode */
cached->content_type = stracpy(get_default_mime_type()); 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());
return cached->content_type; return cached->content_type;
} }