Skip to content

Commit

Permalink
remove unnecessary call
Browse files Browse the repository at this point in the history
Signed-off-by: Rafal Augustyniak <[email protected]>
  • Loading branch information
Augustyniak committed Jun 23, 2022
1 parent c3c9015 commit 8137392
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/swift/HeadersBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Foundation
private let kRestrictedPrefixes = [":", "x-envoy-mobile"]

private func isRestrictedHeader(name: String) -> Bool {
return name == "host" || kRestrictedPrefixes.contains { name.lowercased().hasPrefix($0) }
return name == "host" || kRestrictedPrefixes.contains { name.hasPrefix($0) }
}

/// Base builder class used to construct `Headers` instances.
Expand Down

0 comments on commit 8137392

Please sign in to comment.