You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When making a curl call using the CURLRequest class and the server is IIS using the HTTP 2.0 protocol, the first header starts with "HTTP/2 "
The file CURLRequest.php contains this regex parsing on line 598: preg_match('#^HTTP\/([12]\.[01]) ([0-9]+) (.+)#', $header, $matches);
This fails to parse. It would work if the server used HTTP/2.0 but unfortunately, IIS says HTTP/2.
As a result, no status code is retrieved and CodeIgniter probably somewhere down the way decides it's 200.
I will try. Right now I'm quite under pressure from the actual commercial project and when I look at the process of correctly submitting a pull request, it takes more time than I have with the required test cases and so...
When making a curl call using the CURLRequest class and the server is IIS using the HTTP 2.0 protocol, the first header starts with "HTTP/2 "
The file CURLRequest.php contains this regex parsing on line 598:
preg_match('#^HTTP\/([12]\.[01]) ([0-9]+) (.+)#', $header, $matches);
This fails to parse. It would work if the server used HTTP/2.0 but unfortunately, IIS says HTTP/2.
As a result, no status code is retrieved and CodeIgniter probably somewhere down the way decides it's 200.
CodeIgniter 4 version: 4.0.4
Affected module(s): CURLRequest
*Context: * IIS
The text was updated successfully, but these errors were encountered: