Skip to content

Use HTTP/1.1 in the event bufferevent request examples - #62

Merged
lacatoire merged 1 commit into
php:mainfrom
lacatoire:fix/event-http-1-1-examples
Dec 1, 2026
Merged

lacatoire merged 1 commit into
php:mainfrom
lacatoire:fix/event-http-1-1-examples

Conversation

@lacatoire

Copy link
Copy Markdown
Member

The raw requests built in the EventBufferEvent examples use HTTP/1.0. Switch them to HTTP/1.1, and add the Host header that HTTP/1.1 requires to the two examples that did not send one. They already send Connection: close.

The server-side outputs (EventHttp) are left as they are: they show the version of the client request.

@lacatoire
lacatoire merged commit 37c37dd into php:main Dec 1, 2026
2 checks passed
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

Successfully merging this pull request may close these issues.

2 participants