mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
1) Rename console-common to console so that Eclipse project name is the same as folder name
2) Fix UTF encoding issue at servlet response
This commit is contained in:
parent
cabaa51247
commit
a0c48d7fa1
@ -2,7 +2,7 @@
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/console-common"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/console"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/deps"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/console-common"/>
|
||||
<classpathentry combineaccessrules="false" kind="src" path="/console"/>
|
||||
<classpathentry kind="output" path="bin"/>
|
||||
</classpath>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>console-common</name>
|
||||
<name>console</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
|
||||
@ -318,9 +318,9 @@ public class ApiServlet extends HttpServlet {
|
||||
try {
|
||||
// is text/plain sufficient for XML and JSON?
|
||||
if (BaseCmd.RESPONSE_TYPE_JSON.equalsIgnoreCase(responseType)) {
|
||||
resp.setContentType("text/javascript");
|
||||
resp.setContentType("text/javascript; charset=UTF-8");
|
||||
} else {
|
||||
resp.setContentType("text/xml");
|
||||
resp.setContentType("text/xml; charset=UTF-8");
|
||||
}
|
||||
|
||||
resp.setStatus(responseCode);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user