pan3793 commented on code in PR #2089:
URL:
https://github.com/apache/incubator-celeborn/pull/2089#discussion_r1414762515
##########
service/src/main/scala/org/apache/celeborn/server/common/http/HttpRequestHandler.scala:
##########
@@ -47,21 +47,34 @@ class HttpRequestHandler(
val uri = req.uri()
val (path, parameters) = HttpUtils.parseUri(uri)
val msg = HttpUtils.handleRequest(service, path, parameters)
- val response = msg match {
+ val textType = "text/plain; charset=UTF-8"
+ val jsonType = "application/json; charset=UTF-8"
Review Comment:
```suggestion
val jsonType = "application/json"
```
https://www.rfc-editor.org/rfc/rfc8259.html
> Note: No "charset" parameter is defined for this registration.
> Adding one really has no effect on compliant recipients.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]