Skip to content

Commit

Permalink
use https reddit endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
just-boris committed Jan 7, 2016
1 parent b35c1c9 commit a7b676e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/advanced/AsyncActions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 =>

Expand Down Expand Up @@ -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)))
}
Expand Down
2 changes: 1 addition & 1 deletion docs/advanced/ExampleRedditAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
Expand Down
2 changes: 1 addition & 1 deletion examples/async/actions/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)))
}
Expand Down

0 comments on commit a7b676e

Please sign in to comment.