mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
[data] Add extension .svg for image/svg+xml . Refs #261
The first idea was to add a function for mapping content-type -> extension, but this change is only one line of code.
This commit is contained in:
parent
a9c10ad036
commit
9820cefba6
@ -1362,8 +1362,11 @@ get_extension_from_uri(struct uri *uri)
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "image/gif", "gif")
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "image/jpeg", "jpg")
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "image/png", "png")
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "image/webp", "webp")
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "image/avif", "avif")
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "text/plain", "txt")
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "text/html", "html")
|
||||
ADD_EXTENSION_FROM_TYPE(uri->data, "image/svg+xml", "svg")
|
||||
return stracpy("");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user