Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f36324
)
MDL-28481: Send headers before any possible output
author
Adam Olley
<adam.olley@netspot.com.au>
Sun, 21 Aug 2011 23:41:42 +0000
(09:11 +0930)
committer
Adam Olley
<adam.olley@netspot.com.au>
Sun, 21 Aug 2011 23:41:42 +0000
(09:11 +0930)
webservice/lib.php
patch
|
blob
|
blame
|
history
diff --git
a/webservice/lib.php
b/webservice/lib.php
index
684a541
..
234bafd
100644
(file)
--- a/
webservice/lib.php
+++ b/
webservice/lib.php
@@
-765,6
+765,9
@@
abstract class webservice_zend_server extends webservice_server {
//log the web service request
add_to_log(SITEID, 'webservice', '', '' , $this->zend_class." ".getremoteaddr() , 0, $this->userid);
+ //send headers
+ $this->send_headers();
+
// execute and return response, this sends some headers too
$response = $this->zend_server->handle();
@@
-772,7
+775,6
@@
abstract class webservice_zend_server extends webservice_server {
$this->session_cleanup();
//finally send the result
- $this->send_headers();
echo $response;
die;
}