Skip to content

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

@lovoror

Description

@lovoror

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);
		}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions