Skip to content

Commit

Permalink
bug fixes after testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tonisevener committed May 27, 2021
1 parent 5823bac commit de34952
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Wikipedia/Code/APIURLComponentsBuilder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ public struct APIURLComponentsBuilder {
let encodedPayloadJsonString = payloadString.wmf_UTF8StringWithPercentEscapes()

var components = hostComponents
components.replacePercentEncodedPathWithPathComponents(basePathComponents)
components.percentEncodedQuery = encodedPayloadJsonString
return components
}
Expand Down
2 changes: 1 addition & 1 deletion Wikipedia/Code/RandomArticleFetcher.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Foundation
public final class RandomArticleFetcher: Fetcher {
@objc public func fetchRandomArticle(withSiteURL siteURL: URL, completion: @escaping (Error?, URL?, ArticleSummary?) -> Void) {
let pathComponents = ["page", "random", "summary"]
guard let taskURL = configuration.pageContentServiceAPIURLForURL(siteURL, appending: pathComponents) else {
guard let taskURL = configuration.feedContentAPIURLForURL(siteURL, appending: pathComponents) else {
completion(Fetcher.invalidParametersError, nil, nil)
return
}
Expand Down

0 comments on commit de34952

Please sign in to comment.