Skip to content

Commit 29c4db4

Browse files
committed
Edit README
1 parent 4422458 commit 29c4db4

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ Small clone of the node-js express framework written in pure Java 8.
1111
# Getting Started
1212
**This project is currently in progress, feel free to [contribute](https://github.com/Simonwep/java-express/graphs/contributors) / [report](https://github.com/Simonwep/java-express/issues) issues! :)**
1313

14-
If you have downloaded the lastest [release](https://github.com/Simonwep/java-express/releases) and include it to your project, you can start with the creating of an simple "Hello World" application:
1514
```java
1615
Express app = new Express();
1716

@@ -21,12 +20,11 @@ app.get("/", (req, res) -> {
2120

2221
app.listen(3000);
2322
```
24-
First of all we've create an new Express instance, named `app` then we create an root context `/` for the request-method `get`.
2523

2624
When you create an new Express instance you can add an additional host name for example, your local network:
2725
```java
2826
// Will bind the server to your ip-adress
29-
Express app = new Express(Inet4Address.getLocalHost().getHostAddress());
27+
Express app = new Express(ExpressUtils.getYourIp());
3028
```
3129
Default is localhost, so you can access, without setting the hostname, only from your local pc.
3230

src/express/middleware/ExpressCookieSession.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
final class ExpressCookieSession implements HttpRequest, ExpressFilter, ExpressFilterTask {
1515

16-
private final static String MIDDLEWARE_NAME = "SessionCookie";
16+
private final static String MIDDLEWARE_NAME = "sessioncookie";
1717

1818
private final ConcurrentHashMap<String, SessionCookie> COOKIES = new ConcurrentHashMap<>();
1919
private final String COOKIE_NAME;

src/express/middleware/ExpressStatic.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class ExpressStatic implements HttpRequest {
2121
for (Object o : params) {
2222
if (o instanceof String[]) this.EXTENSIONS = (String[]) o;
2323
else if (o instanceof String) this.PATH = (String) o;
24-
else if (o instanceof HttpRequest) this.ONHANDLE= (HttpRequest) o;
24+
else if (o instanceof HttpRequest) this.ONHANDLE = (HttpRequest) o;
2525
}
2626
}
2727

0 commit comments

Comments
 (0)