{"data":{"id":"magento2-37613","source":"github-pr","sourceRef":"magento/magento2#37613","title":"Fix for headers in HTTP Curl Adapter","pr":{"number":37613,"url":"https://github.com/magento/magento2/pull/37613","author":"zalazdi","mergedAt":"2024-06-26T23:53:57Z","mergeCommit":"db791f24da1162e58852d0543b8b5530ec180d8c","headCommit":"509ea92f1e134b7e2657731b8abb0269e29b0c8f","baseRef":"2.4-develop","diffSha256":"0d4ac2f93d970dca2010996c94ad9d0727a0597580cd383b5b40112626d3eb3c"},"issues":[{"number":37641,"url":"https://github.com/magento/magento2/issues/37641","title":"[Issue] Fix for headers in HTTP Curl Adapter","labels":["Area: Framework","Component: Backend","Issue: Confirmed","Issue: needs update","Priority: P4","Progress: done","Reported on 2.4.x","Reproduced on 2.4.x","Triage: Dev.Experience"],"kind":"pr-derived"}],"fixedIn":"2.4.8","containingTags":["2.4.8","2.4.8-p1","2.4.8-p2","2.4.8-p3","2.4.8-p4","2.4.8-p5","2.4.9"],"reportedOn":null,"codeMatch":{"2.4.6":"clean","2.4.6-p1":"clean","2.4.6-p2":"clean","2.4.6-p3":"clean","2.4.6-p4":"clean","2.4.6-p5":"clean","2.4.6-p6":"clean","2.4.6-p7":"clean","2.4.6-p8":"clean","2.4.6-p9":"clean","2.4.6-p10":"clean","2.4.6-p11":"clean","2.4.6-p12":"clean","2.4.6-p13":"clean","2.4.6-p14":"clean","2.4.6-p15":"clean","2.4.7":"clean","2.4.7-p1":"clean","2.4.7-p2":"clean","2.4.7-p3":"clean","2.4.7-p4":"clean","2.4.7-p5":"clean","2.4.7-p6":"clean","2.4.7-p7":"clean","2.4.7-p8":"clean","2.4.7-p9":"clean","2.4.7-p10":"clean","2.4.8":"conflict","2.4.8-p1":"conflict","2.4.8-p2":"conflict","2.4.8-p3":"conflict","2.4.8-p4":"conflict","2.4.8-p5":"conflict","2.4.9":"conflict"},"affectedVersions":["2.4.6","2.4.6-p1","2.4.6-p2","2.4.6-p3","2.4.6-p4","2.4.6-p5","2.4.6-p6","2.4.6-p7","2.4.6-p8","2.4.6-p9","2.4.6-p10","2.4.6-p11","2.4.6-p12","2.4.6-p13","2.4.6-p14","2.4.6-p15","2.4.7","2.4.7-p1","2.4.7-p2","2.4.7-p3","2.4.7-p4","2.4.7-p5","2.4.7-p6","2.4.7-p7","2.4.7-p8","2.4.7-p9","2.4.7-p10"],"components":["magento/framework"],"files":[{"path":"lib/internal/Magento/Framework/HTTP/Adapter/Curl.php","change":"modified","package":"magento/framework"}],"stripped":{"tests":[],"docs":[],"outsideCode":[]},"linesChanged":6,"mergeBatched":true,"excluded":null,"sections":{"description":"Current implementation of Magento Curl Adapter for Laminas_Http trying to set headers in associative array format:\n```php\n[\n    'Content-Type': 'application/json'\n]\n```\nWe instead should have indexed array:\n```php\n[\n    'Content-Type: application/json',\n]\n```","stepsToReproduce":null,"expectedResult":null,"actualResult":null,"source":"pr"},"signatures":[],"labels":{"area":["Framework"],"component":["Backend"],"priority":"P4","severity":null,"reportedOn":["2.4.x"]},"categories":[],"triage":{"model":"@cf/cloudflare/clef","requestHash":"185fe850d75d3442c4b4f16cc3a67600d6557930ee208e27ed8c8a2e9afda67d","isBugfix":0.9322,"changeKind":{"choice":"bugfix","probabilities":{"bugfix":0.9653,"feature":0.006,"refactor":0.0156,"tests_only":0.0042,"docs_only":0.0038,"dependency":0.0051},"confidence":0.9185},"scope":{"score":0.3883,"probabilities":{"0":0.6601,"1":0.2914,"2":0.0485},"confidence":0.2846},"risk":{"score":0.3969,"probabilities":{"0":0.6497,"1":0.3037,"2":0.0466},"confidence":0.2748},"area":{"choice":"framework","probabilities":{"catalog":0.0096,"checkout":0.0131,"customer":0.0072,"admin":0.0167,"graphql_api":0.0198,"framework":0.8997,"frontend":0.0107,"other":0.0232},"confidence":0.784},"securityRelevant":0.0165,"reportedVersion":{"choice":"unspecified","probabilities":{"2.4.0":0.0057,"2.4.0-p1":0.006,"2.4.1":0.0057,"2.4.1-p1":0.0053,"2.4.2":0.0073,"2.4.2-p1":0.0064,"2.4.2-p2":0.009,"2.4.3":0.0114,"2.4.3-p1":0.0104,"2.4.3-p2":0.014,"2.4.3-p3":0.0074,"2.4.4":0.0173,"2.4.4-p1":0.0109,"2.4.4-p10":0.0074,"2.4.4-p11":0.0085,"2.4.4-p12":0.0069,"2.4.4-p13":0.0068,"2.4.4-p14":0.0087,"2.4.4-p15":0.0063,"2.4.4-p16":0.0072,"2.4.4-p17":0.0064,"2.4.4-p18":0.0057,"2.4.4-p2":0.0036,"2.4.4-p3":0.0038,"2.4.4-p4":0.0042,"2.4.4-p5":0.0043,"2.4.4-p6":0.0052,"2.4.4-p7":0.005,"2.4.4-p8":0.0047,"2.4.4-p9":0.0048,"2.4.5":0.0157,"2.4.5-p1":0.0107,"2.4.5-p10":0.0071,"2.4.5-p11":0.0102,"2.4.5-p12":0.008,"2.4.5-p13":0.0072,"2.4.5-p14":0.0077,"2.4.5-p15":0.0066,"2.4.5-p16":0.0065,"2.4.5-p17":0.0073,"2.4.5-p2":0.0039,"2.4.5-p3":0.005,"2.4.5-p4":0.0061,"2.4.5-p5":0.0046,"2.4.5-p6":0.0065,"2.4.5-p7":0.0061,"2.4.5-p8":0.0058,"2.4.5-p9":0.0048,"2.4.6":0.0266,"2.4.6-p1":0.0252,"2.4.6-p10":0.0086,"2.4.6-p11":0.0129,"2.4.6-p12":0.0121,"2.4.6-p13":0.0112,"2.4.6-p14":0.0116,"2.4.6-p15":0.0085,"2.4.6-p2":0.0045,"2.4.6-p3":0.0075,"2.4.6-p4":0.0081,"2.4.6-p5":0.0072,"2.4.6-p6":0.0081,"2.4.6-p7":0.0084,"2.4.6-p8":0.0066,"2.4.6-p9":0.0052,"2.4.7":0.0171,"2.4.7-p1":0.0142,"2.4.7-p10":0.0096,"2.4.7-p2":0.0079,"2.4.7-p3":0.0128,"2.4.7-p4":0.0147,"2.4.7-p5":0.0135,"2.4.7-p6":0.0128,"2.4.7-p7":0.0117,"2.4.7-p8":0.0096,"2.4.7-p9":0.0056,"2.4.8":0.0208,"2.4.8-p1":0.0174,"2.4.8-p2":0.0188,"2.4.8-p3":0.0178,"2.4.8-p4":0.0149,"2.4.8-p5":0.0139,"2.4.9":0.0164,"unspecified":0.2321},"confidence":0.0515},"backportWorthy":{"score":1.5149,"probabilities":{"0":0.1207,"1":0.2436,"2":0.6357},"confidence":0.217}},"curated":{"title":"HTTP Curl Adapter sets headers in associative array format","description":"The Magento Curl Adapter for Laminas_Http sets the headers for CURLOPT_HTTPHEADER in associative array format, and it should have an indexed array such as 'Content-Type: application/json'. The change in Curl::write builds an indexed array of key: value headers from the array and sets that with curl_setopt.","categories":[],"author":"claude-code/opus-5.5","date":"2026-10-06","reviewedBy":null},"tests":null},"_documentation":"https://magento.watch/api","_description":"Upstream fix magento2-37613 details"}