mirror of
https://github.com/typecho/typecho.git
synced 2025-04-21 02:01:52 +02:00
fix client
This commit is contained in:
parent
919911e288
commit
389b46635e
@ -113,6 +113,7 @@ RewriteRule . {$basePath}index.php [L]
|
||||
/** 发送一个rewrite地址请求 */
|
||||
$client->setData(['do' => 'remoteCallback'])
|
||||
->setHeader('User-Agent', $this->options->generator)
|
||||
->setHeader('X-Requested-With', 'XMLHttpRequest')
|
||||
->send(Common::url('/action/ajax', $this->options->siteUrl));
|
||||
|
||||
if (200 == $client->getResponseStatus() && 'OK' == $client->getResponseBody()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user