Skip to content

Commit

Permalink
removing version info from VIPComponentFilter
Browse files Browse the repository at this point in the history
  • Loading branch information
Kavish Mehta committed May 21, 2024
1 parent e6790c9 commit 3d912f6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ public void doFilter(ServletRequest request, ServletResponse response,
response.setContentType("text/javascript;charset=UTF-8");
os.write(("var translation = {" + "\"messages\" : " + messages + ", "
+ "\"productName\" : \"" + gc.getInstance().getProductName()
+ "\", " + "\"version\" : \"" + gc.getInstance().getVersion()
+ "\", " + "\"vipServer\" : \""
+ gc.getInstance().getVipServer() + "\", " + "\"pseudo\" : \""
+ gc.getInstance().isPseudo() + "\", "
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void init() throws ServletException {
public void testDoFilter() throws IOException, ServletException {
String normalMsg = "var translation = {\"messages\" : {\"LeadTest\":\"[{0}] 测试警示\",\"table.host\":\"主机\",\"global_text_username\":\"用户名\"," +
"\"sample.plural.key1\":\"{0, plural, other{\\\"{1}\\\"上有#个文件。}}\"}," +
" \"productName\" : \"JavaclientTest\", \"version\" : \"1.0.0\", \"vipServer\" : \"http://localhost:8099\", " +
" \"productName\" : \"JavaclientTest\", \"vipServer\" : \"http://localhost:8099\", " +
"\"pseudo\" : \"false\", \"collectSource\" : \"false\"};";

String errorMsg = "{\"code\":400, \"message\": \"Request parameter 'locale' is required!\"}";
Expand Down

0 comments on commit 3d912f6

Please sign in to comment.