Skip to content

Commit 3362233

Browse files
authored
Fix demo file paths (#46)
1 parent 87b258f commit 3362233

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

demo/server.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const server = createServer(async (req, res) => {
2626

2727
const url = urlForRequest(req)
2828

29-
// Every page except /info.php should show the homepage.
30-
if (url.pathname !== '/info.php') {
29+
// Every page except /index.php should show the homepage.
30+
if (url.pathname !== '/index.php') {
3131
res.writeHead(200, {
3232
'Content-Type': 'text/html'
3333
})
@@ -57,7 +57,7 @@ const server = createServer(async (req, res) => {
5757

5858
server.listen(3000, async () => {
5959
const { port } = server.address()
60-
const url = `http://localhost:${port}/info.php`
60+
const url = `http://localhost:${port}/index.php`
6161

6262
const res = await fetch(url, {
6363
method: 'POST',

0 commit comments

Comments
 (0)