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

Remove CURLParser #55

Merged
merged 8 commits into from
Mar 4, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
swift format
  • Loading branch information
adam-fowler committed Mar 4, 2021
commit 4a636a64b555024cf70db76be5f4ff1a00d10cf3
3 changes: 2 additions & 1 deletion Sources/Hummingbird/HTTP/MediaType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public struct HBMediaType: CustomStringConvertible {
}
}
if let category = category,
let subCategory = subCategory {
let subCategory = subCategory
{
self.type = category
self.subType = subCategory.lowercased()
self.parameter = parameter
Expand Down
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Parser/Parser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ extension Unicode.Scalar {
}

public var isLetterOrNumber: Bool {
return isLetter || isNumber
return self.isLetter || self.isNumber
}
}

Expand Down