Skip to content

Conversation

@westonruter
Copy link
Member

This is a sub-PR of #1317. Merge it first.

This fixes a couple cases where Optimization Detective could erroneously attempt to optimize a non-HTML response:

  • A JSON response body that erroneously sends a Content-Type: text/html header.
  • An XML response body that erroneously sends a Content-Type: text/html header.

@westonruter westonruter added [Type] Bug An existing feature is broken [Plugin] Optimization Detective Issues for the Optimization Detective plugin labels Aug 6, 2024
@westonruter westonruter requested a review from felixarntz as a code owner August 6, 2024 20:20
@github-actions
Copy link

github-actions bot commented Aug 6, 2024

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: westonruter <[email protected]>
Co-authored-by: felixarntz <[email protected]>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Copy link
Member

@felixarntz felixarntz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@felixarntz felixarntz merged commit 85e9c2b into update/ob-handling Aug 7, 2024
@felixarntz felixarntz deleted the fix/od-processing-non-html-responses branch August 7, 2024 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Plugin] Optimization Detective Issues for the Optimization Detective plugin [Type] Bug An existing feature is broken

Projects

Status: Done 😃

Development

Successfully merging this pull request may close these issues.

3 participants