3

I am using curl and it is working fine in local..but returning

Invalid response line returned from server: HTTP/2 200

in live server.

I referred this link

How to add preference or plugin to overwrite parseHeaders function in vendor/magento/framework/HTTP/Client/Curl.php

Rakesh Donga
  • 5,344
  • 2
  • 24
  • 57
Pavithra
  • 593
  • 1
  • 11
  • 24

1 Answers1

1

Try making like this:

In custom modules di.xml

<?xml version="1.0"?>
   <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
   <preference for="Magento\Framework\View\Element\AbstractBlock"    type="YourCompany\YourModule\Framework\View\Element\AbstractBlock" />
<  /config>

Create your overide file in your custom module.

Narendra Vyas
  • 1,327
  • 10
  • 28