-
-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix HTTP/2 errors with cURL post #589
Conversation
Can you describe how it is incompatible? Perhaps it could be made compatible rather than disabling it? |
For cURL requests, there's no need to use HTTP/2, which would cost a lot more for a single request. |
@wpdevteam How is Magento's HTTP curl adapter incompatible with curl selecting HTTP/2? |
@LeeSaferite I think the main issue is that input param '$http_ver' in 'public function write' of 'lib/Varien/Http/Adapter/Curl.php' does nothing and 'CURL_HTTP_VERSION_1_1' should be the default header. It has better performance and compatibility if defaulted this way. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving since Varien_Http will never support multiplexing or server push which would be the only reasons to support HTTP/2 over HTTP/1.1.
Oops, merged into 1.9.3.x.. Just cherry picked into 1.9.4.x. Thanks for the PR @wpdevteam! |
Nice to see that i have solved this same problem in the same manner in a plugin that connect Magento to Joomla :-) |
…_VERSION Fixes HTTP/2 errors with cURL post as it is default now
…_VERSION Fixes HTTP/2 errors with cURL post as it is default now
Latest cURL update defaults to HTTP/2, but Magento's HTTP CURL Adapter is incompatible. This patch is necessary for newer server environments.