Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bugfix] Allow all characters in mediatype name per RFC6838 - most notably the underscore #17

Closed
wants to merge 2 commits into from

Conversation

jerrod
Copy link

@jerrod jerrod commented Mar 30, 2015

I have updated the parse_media_type method to match additional characters allowed in media type names per RFC6838.

Type and subtype names MUST conform to the following ABNF:

     type-name = restricted-name
     subtype-name = restricted-name

     restricted-name = restricted-name-first *126restricted-name-chars
     restricted-name-first  = ALPHA / DIGIT
     restricted-name-chars  = ALPHA / DIGIT / "!" / "#" /
                              "$" / "&" / "-" / "^" / "_"
     restricted-name-chars =/ "." ; Characters before first dot always
                                  ; specify a facet name
     restricted-name-chars =/ "+" ; Characters after last plus always
                                  ; specify a structured syntax suffix

@aselder
Copy link

aselder commented Sep 20, 2015

👍 Can we get this merged and the gem bumped

@dblock
Copy link
Contributor

dblock commented Oct 3, 2015

👍 cc: @mjackson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants