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

Default Header Locale Formatter #520

Merged
merged 3 commits into from
Jan 22, 2021
Merged

Default Header Locale Formatter #520

merged 3 commits into from
Jan 22, 2021

Conversation

cdhoffmann
Copy link
Contributor

In v5 we format the locale. Here we format the locale as in v5 except we do it in the NetworkRequest to keep it centrally located and not rely on each extension to do it.

@codecov
Copy link

codecov bot commented Jan 21, 2021

Codecov Report

Merging #520 (246a4a5) into dev-v3.0.1 (3d1d5ac) will increase coverage by 0.05%.
The diff coverage is 96.30%.

@@              Coverage Diff               @@
##           dev-v3.0.1     #520      +/-   ##
==============================================
+ Coverage       87.69%   87.75%   +0.05%     
==============================================
  Files              92       93       +1     
  Lines            4112     4138      +26     
==============================================
+ Hits             3606     3631      +25     
- Misses            506      507       +1     

@shalehaha shalehaha changed the base branch from dev-v3.0.0 to dev-v3.0.1 January 22, 2021 18:21
///
public struct DefaultHeadersFormatter {

typealias httpHeaderConstants = HttpConnectionConstants.Header
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we still need this line?

/// - Parameter unformattedLocale: The unformatted locale as a string
/// - Returns: The formatted locale as a string or nil if not able to format it.
///
public static func getFormattedLocale(unformattedLocale: String) -> String {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_ unformattedLocale

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Decided to change the name as well. Lmk what you think.

@shalehaha shalehaha merged commit 869f960 into adobe:dev-v3.0.1 Jan 22, 2021
@nporter-adbe nporter-adbe added this to the v3.0.1 milestone Jan 30, 2021
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.

3 participants