Skip to content

Commit

Permalink
[Generator] Improve parameter handling of MIME types in content types
Browse files Browse the repository at this point in the history
  • Loading branch information
czechboy0 committed Oct 7, 2024
1 parent f1d7d8b commit d6af31e
Show file tree
Hide file tree
Showing 2 changed files with 392 additions and 115 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ struct ContentType: Hashable {
/// The header value used when validating a content-type header.
///
/// This should be less strict, e.g. not require `charset`.
var headerValueForValidation: String { lowercasedTypeAndSubtype }
var headerValueForValidation: String { lowercasedTypeSubtypeAndParameters }

/// The coding strategy appropriate for this content type.
var codingStrategy: CodingStrategy { category.codingStrategy }
Expand Down
Loading

0 comments on commit d6af31e

Please sign in to comment.