Browse Source

fix encoding, add response settings

main
ghost 11 months ago
parent
commit
ea359f2089
  1. 8
      example/config.json
  2. 4
      src/server.php

8
example/config.json

@ -5,6 +5,14 @@ @@ -5,6 +5,14 @@
{
"host":"127.0.0.1",
"port":1965
},
"response":
{
"default":
{
"code":20,
"meta":"text/gemini; charset=utf-8;"
}
}
},
"memcached":

4
src/server.php

@ -176,11 +176,11 @@ $server->setHandler( @@ -176,11 +176,11 @@ $server->setHandler(
$response = new \Yggverse\TitanII\Response();
$response->setCode(
20
$config->gemini->response->default->code
);
$response->setMeta(
'text/gemini'
$config->gemini->response->default->meta
);
// Route begin

Loading…
Cancel
Save