Unify brackets for opening blocks with comments
This commit is contained in:
parent
340227016a
commit
79b1eda1ed
28 changed files with 83 additions and 164 deletions
|
|
@ -224,8 +224,7 @@ public class RouteServer extends Thread implements Comparable<RouteServer> {
|
|||
String headers = encodings == null || encodings.indexOf("gzip") < 0 ? null : "Content-Encoding: gzip\n";
|
||||
writeHttpHeader(bw, handler.getMimeType(), handler.getFileName(), headers, HTTP_STATUS_OK);
|
||||
if (track != null) {
|
||||
if (headers != null) // compressed
|
||||
{
|
||||
if (headers != null) { // compressed
|
||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||
Writer w = new OutputStreamWriter(new GZIPOutputStream(baos), "UTF-8");
|
||||
w.write(handler.formatTrack(track));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue