Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/drolx/track
Browse files Browse the repository at this point in the history
test rebase
  • Loading branch information
gpproton committed Nov 21, 2023
2 parents 76fbb0c + fabd96b commit b9724ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/main/java/org/traccar/web/OverrideFilter.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,9 @@ public void doFilter(ServletRequest request, ServletResponse response, FilterCha
.replace("${description}", description)
.replace("${colorPrimary}", colorPrimary);

response.setContentLength(alteredContent.length());
response.getOutputStream().write(alteredContent.getBytes());
byte[] data = alteredContent.getBytes();
response.setContentLength(data.length);
response.getOutputStream().write(data);

} else {
response.getOutputStream().write(bytes);
Expand Down
2 changes: 1 addition & 1 deletion traccar-web

0 comments on commit b9724ed

Please sign in to comment.