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

h3zero get GET content types by path #1729

Merged
merged 3 commits into from
Aug 7, 2024

Conversation

hfstco
Copy link
Collaborator

@hfstco hfstco commented Aug 7, 2024

Since we are currently playing with Chrome and the picoquicdemo as a server.

Currently, unless the h3zero_server_default_page is requested (stream_ctx->echo_size/length == 0), the content type h3zero_content_type_text_plain is set in the response header for each GET request. Wouldn't it be possible to set the content type via extension?

Screenshot 2024-08-06 at 23 29 29

If I am correct, h3zero does not currently support query strings. That's why I haven't added support for it at the moment. If desired, I will include this in another PULL request later.

Copy link
Collaborator

@huitema huitema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's nice! It does not increase the size of the code all that much, it makes the server definitely more useful, and there are tests!

@huitema huitema merged commit 2a4c45a into private-octopus:master Aug 7, 2024
10 checks passed
@huitema
Copy link
Collaborator

huitema commented Aug 7, 2024

I entered #1730 to capture the "query string" discussion.

@hfstco hfstco deleted the h3zero_content_types branch December 17, 2024 21:56
@hfstco hfstco restored the h3zero_content_types branch December 17, 2024 21:57
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