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

Bugfix:URLLoader can't send parameters data when using get method. #3

Open
lovoror opened this issue Aug 5, 2020 · 0 comments
Open

Comments

@lovoror
Copy link

lovoror commented Aug 5, 2020

Fixed using code followed:
awayjs/core/lib/net/URLLoader.ts line 171

private getRequest(request:URLRequest):void
{
   try {
			if(request.data !=null){
				this._XHR.open(request.method, request.url + "?" + request.data, request.async);
			}else{
				this._XHR.open(request.method, request.url, request.async);
			}
			this.setResponseType(this._XHR, this._dataFormat);
			this._XHR.send(); // No data to send
		} catch (e /* <XMLHttpRequestException> */) {
			this.handleXmlHttpRequestException(e);
		}
}
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