Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 86591a6

Browse files
Merge pull request #17 from re4388/master
update http to https
2 parents 5cb7467 + 30532e3 commit 86591a6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎src/useDataApiHook-example/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ const useDataApi = (initialUrl, initialData) => {
6969
function App() {
7070
const [query, setQuery] = useState('redux');
7171
const [{ data, isLoading, isError }, doFetch] = useDataApi(
72-
'http://hn.algolia.com/api/v1/search?query=redux',
72+
'https://hn.algolia.com/api/v1/search?query=redux',
7373
{ hits: [] },
7474
);
7575

@@ -78,7 +78,7 @@ function App() {
7878
<form
7979
onSubmit={event => {
8080
doFetch(
81-
`http://hn.algolia.com/api/v1/search?query=${query}`,
81+
`https://hn.algolia.com/api/v1/search?query=${query}`,
8282
);
8383

8484
event.preventDefault();

‎src/useDataApiHook-external-example/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import useDataApi from 'use-data-api';
55
function App() {
66
const [query, setQuery] = useState('redux');
77
const [{ data, isLoading, isError }, doFetch] = useDataApi(
8-
'http://hn.algolia.com/api/v1/search?query=redux',
8+
'https://hn.algolia.com/api/v1/search?query=redux',
99
{ hits: [] },
1010
);
1111

@@ -14,7 +14,7 @@ function App() {
1414
<form
1515
onSubmit={event => {
1616
doFetch(
17-
`http://hn.algolia.com/api/v1/search?query=${query}`,
17+
`https://hn.algolia.com/api/v1/search?query=${query}`,
1818
);
1919

2020
event.preventDefault();

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /