Skip to content

Commit

Permalink
Merge pull request #5 from roryokane/patch-1
Browse files Browse the repository at this point in the history
Clarify why Python’s http.server is not enough
  • Loading branch information
jacebrowning committed Jun 10, 2016
2 parents 3e6b751 + 4a2a4f2 commit 51cf50f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ $ curl http://localhost:8000/index.html
...
```

But when used to serve up single-page applications, a `404` is returned whenever one of the pages is accessed directly:
But when used to serve up single-page applications, a `404` is returned whenever any page other than the index is accessed directly:

```
$ curl http://localhost:8000/login
Expand All @@ -28,7 +28,7 @@ $ curl http://localhost:8000/login
...
```

This project builds on the existing web server code to forward all requests to the index.
This project builds on the existing web server code to forward all requests to the index. The single-page application’s client-side routing can then display the page that corresponds to that request’s URL.

# Setup

Expand Down

0 comments on commit 51cf50f

Please sign in to comment.