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
					
				| @ -1,8 +1,8 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <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="/deps"/> | ||||
| 	<classpathentry kind="output" path="bin"/> | ||||
| </classpath> | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <classpath> | ||||
| 	<classpathentry kind="src" path="src"/> | ||||
| 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||||
| 	<classpathentry combineaccessrules="false" kind="src" path="/console"/> | ||||
| 	<classpathentry combineaccessrules="false" kind="src" path="/deps"/> | ||||
| 	<classpathentry kind="output" path="bin"/> | ||||
| </classpath> | ||||
|  | ||||
| @ -1,7 +1,7 @@ | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <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 kind="output" path="bin"/> | ||||
| </classpath> | ||||
| <?xml version="1.0" encoding="UTF-8"?> | ||||
| <classpath> | ||||
| 	<classpathentry kind="src" path="src"/> | ||||
| 	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/> | ||||
| 	<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