-
Bug
-
Resolution: Fixed
-
Critical
-
3.1, 3.2
-
MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_31_STABLE
-
MDL-55028-master -
As reported in https://moodle.org/mod/forum/discuss.php?d=334991 some browsers/clients fail to read WSDL response because of the wrong header
Content-Length: 1
|
The easiest way to reproduce:
1. Enable Web-services, mobile, SOAP protocol, create a token
2. Request URL:
$ curl -G "http://YOURSITE/webservice/soap/server.php?wstoken=YOURTOKEN&wsdl=1"
|
<
|
|
$ curl -G -I "http://YOURSITE/webservice/soap/server.php?wstoken=YOURTOKEN&wsdl=1"
|
HTTP/1.1 200 OK
|
Date: Mon, 27 Jun 2016 04:34:25 GMT
|
Server: Apache/2.4.7 (Ubuntu)
|
X-Powered-By: PHP/5.5.9-1ubuntu4.17
|
Cache-Control: private, must-revalidate, pre-check=0, post-check=0, max-age=0
|
Expires: Thu, 01 Jan 1970 00:00:00 GMT
|
Pragma: no-cache
|
Accept-Ranges: none
|
Content-Length: 1
|
Content-Disposition: inline; filename="response.xml"
|
Content-Type: application/xml; charset=utf-8
|
|
The actual content is correct and most browsers correctly display the content.
- has a non-specific relationship to
-
MDL-53723 Normalize how we count bytes in a variable
- Open