mirror of
https://github.com/sismics/docs.git
synced 2025-12-12 17:26:13 +00:00
#314: force file content in utf8
This commit is contained in:
@@ -608,7 +608,7 @@ public class FileResource extends BaseResource {
|
||||
if (size != null) {
|
||||
if (size.equals("content")) {
|
||||
return Response.ok(Strings.nullToEmpty(file.getContent()))
|
||||
.header(HttpHeaders.CONTENT_TYPE, "text/plain")
|
||||
.header(HttpHeaders.CONTENT_TYPE, "text/plain; charset=utf-8")
|
||||
.build();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user