Skip to content

Commit ff4c472

Browse files
committed
fixes api docs
1 parent bc7807a commit ff4c472

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/prologue/core/contenttype.nim

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ proc parseContentType*(headerValue: string): MediaType =
2222
## Parses a Content-Type header according to RFC 7230, RFC 2045, and RFC 2046.
2323
## Returns a MediaType object containing the main type, sub type, and parameters.
2424
runnableExamples:
25+
import std/tables
2526
let mediaType = parseContentType("text/plain; charset=\"utf-8\"")
2627
doAssert mediaType.mainType == "text"
2728
doAssert mediaType.subType == "plain"

0 commit comments

Comments
 (0)