Closed (fixed)
Project:
Drupal core
Version:
9.2.x-dev
Component:
media system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 Aug 2021 at 23:14 UTC
Updated:
12 Oct 2021 at 08:29 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
larowlanComment #3
larowlanComment #5
amjad1233Would it not be good to $response->prepare($request); as it does the pretty much the same thing you're trying to achieve?
If not instead of 200 it would be good to use HtmlResponse::HTTP_OK;
Although not very fuss about it.
Comment #6
larowlanPrepare seems to do a lot more, so just made the change to use the constant
Comment #7
phenaproximaI don't think I have anything to complain about here. Seems like a simple, sensible change. Let's bring 'er in.
Comment #8
amjad1233Thanks @larowlan. LGTM as well.
Comment #9
alexpottThis needs a reroll.
Comment #10
karishmaamin commentedRe-rolled patch
Comment #11
larowlanReroll
Comment #12
phenaproximaComment #13
phenaproximaAdjusting credit.
Comment #14
alexpottCommitted and pushed 0a5beb304b to 9.3.x and 5a2387514e to 9.2.x. Thanks!
I credited @karishmaamin - thanks for the attempted re-roll. In future it is a good idea to run any tests changed locally. It gives a you a good idea if the re-roll has worked as expected.
I also credited @amjad1233 for a review that contributed to the patch.