Skip to content

Commit

Permalink
Change WorldBank url to https; fixes #1514
Browse files Browse the repository at this point in the history
  • Loading branch information
pkese committed Sep 25, 2024
1 parent 71c95c7 commit 07fb089
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/library/JsonProvider.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ let doc = WorldBank.GetSample()
(** Note that we can also load the data directly from the web both in the `Load` method and in
the type provider sample parameter, and there's an asynchronous `AsyncLoad` method available too: *)
let wbReq =
"http://api.worldbank.org/country/cz/indicator/"
"https://api.worldbank.org/country/cz/indicator/"
+ "GC.DOD.TOTL.GD.ZS?format=json"
let docAsync = WorldBank.AsyncLoad(wbReq)
Expand Down
2 changes: 1 addition & 1 deletion docs/library/JsonValue.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ let value = JsonValue.Load(__SOURCE_DIRECTORY__ + "../../data/WorldBank.json")
asynchronous version available too: *)
let wbReq =
"http://api.worldbank.org/country/cz/indicator/"
"https://api.worldbank.org/country/cz/indicator/"
+ "GC.DOD.TOTL.GD.ZS?format=json"
let valueAsync = JsonValue.AsyncLoad(wbReq)
Expand Down
2 changes: 1 addition & 1 deletion src/FSharp.Data.DesignTime/WorldBank/WorldBankProvider.fs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ type public WorldBankProvider(cfg: TypeProviderConfig) as this =
let asm = System.Reflection.Assembly.GetExecutingAssembly()
let ns = "FSharp.Data"

let defaultServiceUrl = "http://api.worldbank.org/v2"
let defaultServiceUrl = "https://api.worldbank.org/v2"
let cacheDuration = TimeSpan.FromDays 30.0
let restCache = createInternetFileCache "WorldBankSchema" cacheDuration

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class WorldBankDataProvider : obj
static member GetDataContext: () -> WorldBankDataProvider+ServiceTypes+WorldBankDataService
(new WorldBankData("http://api.worldbank.org", "World Development Indicators;Global Financial Development"))
(new WorldBankData("https://api.worldbank.org", "World Development Indicators;Global Financial Development"))


class WorldBankDataProvider+ServiceTypes : obj
Expand Down

0 comments on commit 07fb089

Please sign in to comment.