[wp-trac] [WordPress Trac] #38733: REST API: Maintenance Mode sends HTML in request.
WordPress Trac
noreply at wordpress.org
Wed Nov 9 17:14:30 UTC 2016
#38733: REST API: Maintenance Mode sends HTML in request.
-------------------------------+-----------------------
Reporter: TimothyBlynJacobs | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: General | Version:
Severity: normal | Resolution:
Keywords: needs-patch | Focuses: rest-api
-------------------------------+-----------------------
Comment (by jnylen0):
XMLRPC does the same thing:
{{{
$ http POST https://nylen.io/wp-dev/xmlrpc.php
HTTP/1.1 503 Service Unavailable
Connection: close
Content-Encoding: gzip
Content-Length: 242
Content-Type: text/html; charset=utf-8
Date: Wed, 09 Nov 2016 17:11:28 GMT
Retry-After: 600
Server: Apache/2.2.22 (Debian)
Vary: Accept-Encoding
this is the content of .maintenance
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"
/>
<title>Maintenance</title>
</head>
<body>
<h1>Briefly unavailable for scheduled maintenance. Check
back in a minute.</h1>
</body>
</html>
}}}
This is very early in the load order and it would be difficult to fix
without a hack like checking the request URL for `/wp-json(/|$)`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38733#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list