Skip to content

Commit d36ed93

Browse files
committed
docstring update
1 parent 5f4ab69 commit d36ed93

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "MIMEs"
22
uuid = "6c6e2e6c-3030-632d-7369-2d6c69616d65"
33
license = "MIT"
44
authors = ["Fons van der Plas <[email protected]>", "Takafumi Arakaki <[email protected]>", "Thibaut Lienart <[email protected]>"]
5-
version = "0.1.3"
5+
version = "0.1.4"
66

77
[compat]
88
julia = "1.3"

src/MIMEs.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ Turn a MIME into a Content-Type header value, which might include the `charset`
143143
```julia
144144
contenttype_from_mime(MIME"application/json"()) == "application/json; charset=utf-8"
145145
contenttype_from_mime(MIME"application/x-bogus"()) == "application/x-bogus"
146+
contenttype_from_mime(mime_from_extension(".png", MIME"application/octet-stream"())) == "image/png"
146147
```
147148
148149
# See also:

test/runtests.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ sub(s) = SubString(s, 1)
3636

3737
@test contenttype_from_mime(MIME"application/json"()) == "application/json; charset=utf-8"
3838
@test contenttype_from_mime(MIME"application/x-bogus"()) == "application/x-bogus"
39+
@test contenttype_from_mime(mime_from_extension(".png", MIME"application/octet-stream"())) == "image/png"
3940

4041
# from https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types
4142
const mdn = Dict(

0 commit comments

Comments
 (0)