Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ private void overwriteApplicationProperties(Path propsFile) throws IOException {
"spring.servlet.multipart.max-request-size=50MB",
"spring.web.resources.static-locations=classpath:/static/",
"",
"spring.http.encoding.charset=UTF-8",
"spring.http.encoding.enabled=true",
"spring.http.encoding.force=true",
"",
"server.ssl.key-store=classpath:keystore.p12",
"server.ssl.key-store-password=ailearntool",
"server.ssl.key-store-type=PKCS12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public void sendMessage(@CookieValue(value = "userID", defaultValue = "") String
@RequestParam(name = "newMessage") String newMessage,
@RequestParam(name = "chatID") String chatID,
HttpServletResponse response) {
response.setContentType("text/plain");
response.setContentType("text/plain; charset=utf-8");
response.setStatus(401); // Default

// 1) Get the user
Expand Down
3 changes: 3 additions & 0 deletions backend/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ spring.servlet.multipart.max-file-size=50MB
spring.servlet.multipart.max-request-size=50MB
spring.web.resources.static-locations=classpath:/static/
server.port=8080
server.servlet.encoding.charset=UTF-8
server.servlet.encoding.enabled=true
server.servlet.encoding.force=true