Skip to content

Commit 45b1183

Browse files
committed
Fix Accept pb
1 parent 81089c0 commit 45b1183

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Ubiquity/servers/workerman/WorkermanServer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ protected function handle(ConnectionInterface $connection, $datas) {
125125
$_GET['c'] = $uri;
126126
} else {
127127
if ($fe) {
128-
Http::header('Content-Type: ' . HttpCache::$header['Accept'] ?? 'text/html; charset=utf-8', true);
128+
Http::header('Content-Type: ' . (HttpCache::$header['Accept'] ?? 'text/html; charset=utf-8'), true);
129129
return $connection->send(\file_get_contents($this->basedir . '/../' . $uri));
130130
} else {
131-
Http::header('Content-Type: ' . HttpCache::$header['Accept'] ?? 'text/html; charset=utf-8', true, 404);
131+
Http::header('Content-Type: ' . (HttpCache::$header['Accept'] ?? 'text/html; charset=utf-8'), true, 404);
132132
return $connection->send($uri . ' not found!');
133133
}
134134
return;

0 commit comments

Comments
 (0)