Skip to content

content-type comparison is failing #2

@dh-harald

Description

@dh-harald

Hi,

In my case https://github.com/luca-moser/iris-cache/blob/master/cache.go#L119 failed, because my Content-type contains my encoding: Content-Type: text/html; charset=UTF-8
Therefore I can't use your provided values for content type (cache.ContentTypeHTML/cache.ContentTypeJSON)

Could you fix it somehow? For example trim the variable after ;. It's not a big deal, but it could be better with a fix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions