mirror of
https://github.com/kataras/iris.git
synced 2026-05-14 18:13:49 +00:00
more features and fix database/mysql:jwt example
This commit is contained in:
@@ -1343,6 +1343,7 @@ func (ctx *Context) GetContentType() string {
|
||||
// trim-ed(without the charset and priority values)
|
||||
// header value of "Content-Type".
|
||||
func (ctx *Context) GetContentTypeRequested() string {
|
||||
// could use mime.ParseMediaType too.
|
||||
return TrimHeaderValue(ctx.GetHeader(ContentTypeHeaderKey))
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user