Skip to content

Commit

Permalink
Merge branch 'MDL-34068_23' of git://github.com/dmonllao/moodle into …
Browse files Browse the repository at this point in the history
…MOODLE_23_STABLE
  • Loading branch information
Aparup Banerjee committed Sep 10, 2012
2 parents 7413ce9 + a08d03a commit 9111b11
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion mod/chat/chatd.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -538,8 +538,18 @@ function promote_final($sessionid, $customdata) {


// $this->trace('QUIRKS value for this connection is '.$customdata['quirks']); // $this->trace('QUIRKS value for this connection is '.$customdata['quirks']);


$header = "HTTP/1.1 200 OK\n";
$header .= "Connection: close\n";
$header .= "Date: ".date('r')."\n";
$header .= "Server: Moodle\n";
$header .= "Content-Type: text/html; charset=utf-8\n";
$header .= "Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT\n";
$header .= "Cache-Control: no-cache, must-revalidate\n";
$header .= "Expires: Wed, 4 Oct 1978 09:32:45 GMT\n";
$header .= "\n";

$this->dismiss_half($sessionid, false); $this->dismiss_half($sessionid, false);
$this->write_data($this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL], $CHAT_HTMLHEAD_JS); $this->write_data($this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL], $header . $CHAT_HTMLHEAD_JS);
$this->trace('Connection accepted: '.$this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL].', SID: '.$sessionid.' UID: '.$chatuser->userid.' GID: '.$chatuser->groupid, E_USER_WARNING); $this->trace('Connection accepted: '.$this->conn_sets[$sessionid][CHAT_CONNECTION_CHANNEL].', SID: '.$sessionid.' UID: '.$chatuser->userid.' GID: '.$chatuser->groupid, E_USER_WARNING);


// Finally, broadcast the "entered the chat" message // Finally, broadcast the "entered the chat" message
Expand Down

0 comments on commit 9111b11

Please sign in to comment.