Skip to content

Commit 07fb089

Browse files
committed
Change WorldBank url to https; fixes #1514
1 parent 71c95c7 commit 07fb089

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/library/JsonProvider.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ let doc = WorldBank.GetSample()
306306
(** Note that we can also load the data directly from the web both in the `Load` method and in
307307
the type provider sample parameter, and there's an asynchronous `AsyncLoad` method available too: *)
308308
let wbReq =
309-
"http://api.worldbank.org/country/cz/indicator/"
309+
"https://api.worldbank.org/country/cz/indicator/"
310310
+ "GC.DOD.TOTL.GD.ZS?format=json"
311311
312312
let docAsync = WorldBank.AsyncLoad(wbReq)

docs/library/JsonValue.fsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ let value = JsonValue.Load(__SOURCE_DIRECTORY__ + "../../data/WorldBank.json")
147147
asynchronous version available too: *)
148148
149149
let wbReq =
150-
"http://api.worldbank.org/country/cz/indicator/"
150+
"https://api.worldbank.org/country/cz/indicator/"
151151
+ "GC.DOD.TOTL.GD.ZS?format=json"
152152
153153
let valueAsync = JsonValue.AsyncLoad(wbReq)

src/FSharp.Data.DesignTime/WorldBank/WorldBankProvider.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ type public WorldBankProvider(cfg: TypeProviderConfig) as this =
2828
let asm = System.Reflection.Assembly.GetExecutingAssembly()
2929
let ns = "FSharp.Data"
3030

31-
let defaultServiceUrl = "http://api.worldbank.org/v2"
31+
let defaultServiceUrl = "https://api.worldbank.org/v2"
3232
let cacheDuration = TimeSpan.FromDays 30.0
3333
let restCache = createInternetFileCache "WorldBankSchema" cacheDuration
3434

tests/FSharp.Data.DesignTime.Tests/expected/WorldBank,World Development Indicators;Global Financial Development,True.expected

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
class WorldBankDataProvider : obj
22
static member GetDataContext: () -> WorldBankDataProvider+ServiceTypes+WorldBankDataService
3-
(new WorldBankData("http://api.worldbank.org", "World Development Indicators;Global Financial Development"))
3+
(new WorldBankData("https://api.worldbank.org", "World Development Indicators;Global Financial Development"))
44

55

66
class WorldBankDataProvider+ServiceTypes : obj

0 commit comments

Comments
 (0)