Skip to content

Commit

Permalink
Jessy jp branch for pull req (#592)
Browse files Browse the repository at this point in the history
* Update .gitignore

* Bugfix flush called after close

* Update .gitignore

* Bugfix flush called after close

* Update .gitignore
  • Loading branch information
JessyJP committed Nov 3, 2022
1 parent e59d4e6 commit c946cf1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Quelea/build/*
Quelea/out-mac/*
Quelea/dist/*
Quelea/nbproject/*
Quelea/.idea/*
.idea/*
Quelea/.gradle/*
Quelea/.nb-gradle/*

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -710,10 +710,9 @@ public void handle(HttpExchange he) throws IOException {
final String response = "";
he.getResponseHeaders().add("Cache-Control", "no-cache, no-store, must-revalidate");
he.sendResponseHeaders(200, response.getBytes(Charset.forName("UTF-8")).length);
OutputStream os = he.getResponseBody();
os.write(response.getBytes(Charset.forName("UTF-8")));
os.close();
os.flush();
try(OutputStream os = he.getResponseBody()) {
os.write(response.getBytes(Charset.forName("UTF-8")));
}
RCHandler.transposeSong(he);
} else {
reload(he);
Expand Down

0 comments on commit c946cf1

Please sign in to comment.