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 b9c2915 commit 59c542dCopy full SHA for 59c542d
1 file changed
src/test/java/com/retailsvc/http/start/GetDataHandler.java
@@ -3,6 +3,7 @@
3
import com.retailsvc.http.Request;
4
import com.retailsvc.http.RequestHandler;
5
import java.io.IOException;
6
+import java.net.HttpURLConnection;
7
import org.slf4j.Logger;
8
import org.slf4j.LoggerFactory;
9
@@ -21,6 +22,6 @@ public void handle(Request request) throws IOException {
21
22
}\
23
"""
24
.getBytes();
- request.respond(200).contentType("application/json").bytes(bytes);
25
+ request.respond(HttpURLConnection.HTTP_OK).contentType("application/json").bytes(bytes);
26
}
27
0 commit comments