mirror of
https://github.com/sismics/docs.git
synced 2024-11-22 05:57:57 +01:00
#314: force file content in utf8
This commit is contained in:
parent
1a90a0e0ad
commit
38939e5d05
@ -608,7 +608,7 @@ public class FileResource extends BaseResource {
|
|||||||
if (size != null) {
|
if (size != null) {
|
||||||
if (size.equals("content")) {
|
if (size.equals("content")) {
|
||||||
return Response.ok(Strings.nullToEmpty(file.getContent()))
|
return Response.ok(Strings.nullToEmpty(file.getContent()))
|
||||||
.header(HttpHeaders.CONTENT_TYPE, "text/plain")
|
.header(HttpHeaders.CONTENT_TYPE, "text/plain; charset=utf-8")
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user