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

Android XMLHTTPRequest Crash when The server return 200(no have OK) #20037

Open
yangyp-yes opened this issue Aug 15, 2019 · 0 comments
Open

Android XMLHTTPRequest Crash when The server return 200(no have OK) #20037

yangyp-yes opened this issue Aug 15, 2019 · 0 comments

Comments

@yangyp-yes
Copy link

yangyp-yes commented Aug 15, 2019

  • cocos2d-x version: 3.17.2 js
  • devices test on: Android

Steps to Reproduce:

  1. use the server tomcat 8.5 and above and run a simple http service
  2. New a Cocos2d-js project and write a simple xml method,Get or Post
  3. Run on android and it will crash

why?

tomcat , only Retrun HTTP/1.1 200 ,when C++ code to parse 200 and OK but it don't have and so exception

It's in frameworks/cocos2d-x/cocos/scripting/js-bindings/manual/network/XMLHTTPRequest.cpp

to resolve it

Client: Comment on the code, but I'm not sure there are any side effects
or server: Tomcat is degraded to 8.5, and add sendReasonPhrase="true",but tomcat 9 it's no longer supported,this docment Tomcat DOC search sendReasonPhrase

TODO

finishing and Make a PR

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