diff --git a/android/src/main/java/me/alwx/HttpServer/HttpServerModule.java b/android/src/main/java/me/alwx/HttpServer/HttpServerModule.java index d0ab911..a8eac0b 100644 --- a/android/src/main/java/me/alwx/HttpServer/HttpServerModule.java +++ b/android/src/main/java/me/alwx/HttpServer/HttpServerModule.java @@ -46,9 +46,9 @@ public class HttpServerModule extends ReactContextBaseJavaModule implements Life } @ReactMethod - public void respond(int code, String type, String body) { + public void respond(String requestId, int code, String type, String body) { if (server != null) { - server.respond(code, type, body); + server.respond(requestId, code, type, body); } }