Skip to content
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

Util HttpRequest Response does not support HTTP 2 and 3 #15

Open
rengaw83 opened this issue Jan 9, 2023 · 0 comments
Open

Util HttpRequest Response does not support HTTP 2 and 3 #15

rengaw83 opened this issue Jan 9, 2023 · 0 comments

Comments

@rengaw83
Copy link
Member

rengaw83 commented Jan 9, 2023

The response object checks the HTTP Version of the curl responce. The version has to be d.d (e.g. 1.0, 1.1).
Version 2 or 3 are resulting in an Invalid HTTP response version: 3 exception.

if (!preg_match('|^\d\.\d$|', $version)) {
throw new Exception('Invalid HTTP response version: '.$version);
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant