当我呼叫休息路线时,浏览器会话未关闭且浏览器继续加载。因此,chrome会生成ERR_INCOMPLETE_CHUNKED_ENCODING
错误。
这是请求标题:
GET /?rest_route=/test/v1/advertiser/logout HTTP/1.1
Host: www.domain.com
Connection: keep-alive
Cache-Control: max-age=0
Upgrade-Insecure-Requests: 1
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.8
Cookie: wp-settings-1=libraryContent%3Dbrowse%26editor%3Dhtml; wp-settings-time-1=1499682179; wordpress_test_cookie=WP+Cookie+check; wordpress_logged_in_dc4e3a2222d11ce1c897e40579a199d39=admin%7C1501067732%7CgpNTUVy5lddq6EDTuDg6YzR9G2F222220zRTbEsgVTRF9%7C11627a0ad7e00c5d4f0a1b8a822d6ac366da838d7648c3d5c7cf7826eb5eb856
Query String Parameters
view source
view URL encoded
以下是响应标题:
HTTP/1.1 201 Created
Date: Tue, 15 Aug 2017 04:48:00 GMT
Server: Apache
X-Powered-By: PHP/5.6.30
X-Robots-Tag: noindex
Link: <_domain_url_here_/?rest_route=/>; rel="https://api.w.org/"
X-Content-Type-Options: nosniff
Access-Control-Expose-Headers: X-WP-Total, X-WP-TotalPages
Access-Control-Allow-Headers: Authorization, Content-Type
Allow: GET
Cache-Control: private, must-revalidate
Expires: Thu, 14 Sep 2017 04:48:00 GMT
Connection: close
Transfer-Encoding: chunked
Content-Type: application/json; charset=UTF-8
如果我还需要在此发布任何内容,请告知我们。