Skip to content

Commit

Permalink
docstring update
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed May 11, 2022
1 parent 5f4ab69 commit d36ed93
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name = "MIMEs"
uuid = "6c6e2e6c-3030-632d-7369-2d6c69616d65"
license = "MIT"
authors = ["Fons van der Plas <[email protected]>", "Takafumi Arakaki <[email protected]>", "Thibaut Lienart <[email protected]>"]
version = "0.1.3"
version = "0.1.4"

[compat]
julia = "1.3"
Expand Down
1 change: 1 addition & 0 deletions src/MIMEs.jl
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ Turn a MIME into a Content-Type header value, which might include the `charset`
```julia
contenttype_from_mime(MIME"application/json"()) == "application/json; charset=utf-8"
contenttype_from_mime(MIME"application/x-bogus"()) == "application/x-bogus"
contenttype_from_mime(mime_from_extension(".png", MIME"application/octet-stream"())) == "image/png"
```
# See also:
Expand Down
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ sub(s) = SubString(s, 1)

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

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

2 comments on commit d36ed93

@fonsp
Copy link
Member Author

@fonsp fonsp commented on d36ed93 May 11, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/60084

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.4 -m "<description of version>" d36ed935708a1639e9ccc5253e15a75f14129411
git push origin v0.1.4

Please sign in to comment.