Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

获取信道连接地址接口在spring环境中无返回值的问题 #27

Open
zhonghq opened this issue Oct 10, 2017 · 1 comment
Open

Comments

@zhonghq
Copy link

zhonghq commented Oct 10, 2017

获取信道连接地址接口在官方demo下可以正常发挥信道服务器连接地址。然而当我把sdk集成到springboot中时此接口没有返回兑现,经过调试发现了一个编码错误
方法为tunnelService.handle()
原代码
if (request.getMethod().toUpperCase() == "GET") {
handleGet(handler, options);
}
if (request.getMethod().toUpperCase() == "POST") {
handlePost(handler, options);
}
修改后代码
if (request.getMethod().toUpperCase().equals("GET")) {
handleGet(handler, options);
}
if (request.getMethod().toUpperCase().equals("POST")) {
handlePost(handler, options);
}
修改后此接口正常

@zhonghq
Copy link
Author

zhonghq commented Oct 10, 2017

有没有哪位见识过这种问题的解释一下为何在sevlet居然没有问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant