We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87b258f commit 3362233Copy full SHA for 3362233
demo/server.js
@@ -26,8 +26,8 @@ const server = createServer(async (req, res) => {
26
27
const url = urlForRequest(req)
28
29
- // Every page except /info.php should show the homepage.
30
- if (url.pathname !== '/info.php') {
+ // Every page except /index.php should show the homepage.
+ if (url.pathname !== '/index.php') {
31
res.writeHead(200, {
32
'Content-Type': 'text/html'
33
})
@@ -57,7 +57,7 @@ const server = createServer(async (req, res) => {
57
58
server.listen(3000, async () => {
59
const { port } = server.address()
60
- const url = `http://localhost:${port}/info.php`
+ const url = `http://localhost:${port}/index.php`
61
62
const res = await fetch(url, {
63
method: 'POST',
0 commit comments