Skip to content

Commit 3cd8f55

Browse files
committed
0.6.1: Important Android fix: instead of
1 parent ed39e6d commit 3cd8f55

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

android/src/main/java/me/alwx/HttpServer/Server.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public Response serve(IHTTPSession session) {
6363
}
6464

6565
public void respond(String requestId, int code, String type, String body) {
66-
requestResponses.put(requestId, newFixedLengthResponse(Status.lookup(code), type, body));
66+
responses.put(requestId, newFixedLengthResponse(Status.lookup(code), type, body));
6767
}
6868

6969
private WritableMap fillRequestMap(IHTTPSession session, String requestId) throws Exception {

package.json

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

22
{
33
"name": "react-native-http-bridge",
4-
"version": "0.6.0",
4+
"version": "0.6.1",
55
"description": "A simple HTTP debug server for React Native apps",
66
"main": "httpServer.js",
77
"repository": {

0 commit comments

Comments
 (0)