Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .harness/test_long_branch_names.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ pipeline:
type: Run
name: asd
identifier: asd
timeout: 20h
spec:
connectorRef: account.testSecret
image: ad
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ It creates a self-contained, executable JAR in the `target` directory.
-h,--help display help
-p,--port <PORT> port to listen (default: 8888)
-r,--root <DIR> server root directory (default: '.')
-t,--threads <THREADS_NO> thread pool size (default: 10)
-t,--threads <THREADS_NO> thread pool size (default: 11)

### Demo
* [Change background color](src/main/java/io/harness/jhttp/processor/DirectoryListing.java)
* [Update a test](src/test/java/io/harness/jhttp/server/HeaderListTest.java)
* [Update README](README.md)




Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public boolean process(HttpRequest request, HttpResponse response) {

private void appendLink(String fileName, String uri, PrintWriter writer) {
// writer.append(String.format("<li>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));
writer.append(String.format("<li style='list-style-type:circle; padding:4px; background:#ff4230;'>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));
writer.append(String.format("<li style='list-style-type:circle; padding:4px; background:#ff4220;'>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));
// writer.append(String.format("<li style='list-style-type:circle; padding:4px; background:yellow;'>\n<a href=\"%s/%s\">%s</a>\n</li>\n", uri, fileName, fileName));

}
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/io/harness/jhttp/functional/HttpClientTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ public void testStaticFile2234() throws IOException , InterruptedException {
testRequest("/file2.html", "/http-server/server-root/file2.html");
}


//faill
@Test
public void testStaticFile2341() throws IOException, InterruptedException {
Thread.sleep(10000); // sleep 10 sec
testRequest("/file1.html", "/http-server/server-root/file1.html");
testRequest("/file1.html", "/http-server/server-root/file6.html");
testRequest("/file2.html", "/http-server/server-root/file2.html");
}

Expand Down