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:
parent
cb6556302c
commit
13f1c878ac
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user