From a7b676ec51ece3ac5fd2ec38322f1840080831ad Mon Sep 17 00:00:00 2001 From: just-boris Date: Thu, 7 Jan 2016 23:37:42 +0300 Subject: [PATCH] use https reddit endpoint fixes #1209 --- docs/advanced/AsyncActions.md | 4 ++-- docs/advanced/ExampleRedditAPI.md | 2 +- examples/async/actions/index.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/advanced/AsyncActions.md b/docs/advanced/AsyncActions.md index 9f9e4441c8..f6220f75be 100644 --- a/docs/advanced/AsyncActions.md +++ b/docs/advanced/AsyncActions.md @@ -350,7 +350,7 @@ export function fetchPosts(reddit) { // In this case, we return a promise to wait for. // This is not required by thunk middleware, but it is convenient for us. - return fetch(`http://www.reddit.com/r/${reddit}.json`) + return fetch(`https://www.reddit.com/r/${reddit}.json`) .then(response => response.json()) .then(json => @@ -438,7 +438,7 @@ function receivePosts(reddit, json) { function fetchPosts(reddit) { return dispatch => { dispatch(requestPosts(reddit)) - return fetch(`http://www.reddit.com/r/${reddit}.json`) + return fetch(`https://www.reddit.com/r/${reddit}.json`) .then(response => response.json()) .then(json => dispatch(receivePosts(reddit, json))) } diff --git a/docs/advanced/ExampleRedditAPI.md b/docs/advanced/ExampleRedditAPI.md index 9a31543b88..7214933556 100644 --- a/docs/advanced/ExampleRedditAPI.md +++ b/docs/advanced/ExampleRedditAPI.md @@ -64,7 +64,7 @@ function receivePosts(reddit, json) { function fetchPosts(reddit) { return dispatch => { dispatch(requestPosts(reddit)) - return fetch(`http://www.reddit.com/r/${reddit}.json`) + return fetch(`https://www.reddit.com/r/${reddit}.json`) .then(response => response.json()) .then(json => dispatch(receivePosts(reddit, json))) } diff --git a/examples/async/actions/index.js b/examples/async/actions/index.js index 7befff6d10..b3c32cd68d 100644 --- a/examples/async/actions/index.js +++ b/examples/async/actions/index.js @@ -38,7 +38,7 @@ function receivePosts(reddit, json) { function fetchPosts(reddit) { return dispatch => { dispatch(requestPosts(reddit)) - return fetch(`http://www.reddit.com/r/${reddit}.json`) + return fetch(`https://www.reddit.com/r/${reddit}.json`) .then(response => response.json()) .then(json => dispatch(receivePosts(reddit, json))) }