Changes between Initial Version and Version 1 of Ticket #44534, comment 13
- Timestamp:
- 10/10/2018 05:40:18 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #44534, comment 13
initial v1 3 3 > The `/wp-json/` path is filterable, which would happen much later in the stack, so I think inspecting `Content-Type` is more reliable and precise. 4 4 5 You rtalking about the response header? Wouldn't that only get set once WP understands that it's a REST response, which is basically too late (ie after the debug init)? I would think as soon as a debug statement was echoed the web server would output all response headers, which then wouldn't work for detection. Or am I misunderstanding?5 You're talking about the response header? Wouldn't that only get set once WP understands that it's a REST response, which is basically too late (ie after the debug init)? I would think as soon as a debug statement was echoed the web server would output all response headers, which then wouldn't work for detection. Or am I misunderstanding?