Merge branch 'master' of git@gitorious.org:laconica/dev into 0.7.x
This commit is contained in:
@@ -1390,7 +1390,7 @@ function common_negotiate_type($cprefs, $sprefs)
|
||||
}
|
||||
|
||||
$bestq = 0;
|
||||
$besttype = "text/html";
|
||||
$besttype = 'text/html';
|
||||
|
||||
foreach(array_keys($combine) as $type) {
|
||||
if($combine[$type] > $bestq) {
|
||||
@@ -1399,6 +1399,9 @@ function common_negotiate_type($cprefs, $sprefs)
|
||||
}
|
||||
}
|
||||
|
||||
if ('text/html' === $besttype) {
|
||||
return "text/html; charset=utf-8";
|
||||
}
|
||||
return $besttype;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user