Skip to content
This repository was archived by the owner on May 12, 2026. It is now read-only.

add uri length check#262

Merged
saviorand merged 3 commits into
Lightbug-HQ:mainfrom
nowex35:main
Jul 29, 2025
Merged

add uri length check#262
saviorand merged 3 commits into
Lightbug-HQ:mainfrom
nowex35:main

Conversation

@nowex35
Copy link
Copy Markdown
Contributor

@nowex35 nowex35 commented Jul 23, 2025

Add URI length check and return status 414.
This PR is for HTTP/1.1 [3-4] https://github.com/Lightbug-HQ/lightbug_http/issues/120

Add URITooLong to common_response
Add new argument (max_request_uri_length) to server
Check length against max_uri_length
Also, max_request_body_size may not have been implemented properly, so fix that as well.

Please let me know if there are any problems.

Copy link
Copy Markdown
Collaborator

@saviorand saviorand left a comment

Choose a reason for hiding this comment

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

Hello, thanks for the contribution! Looks great. I only have one comment.
Could you please take a look?

Comment thread lightbug_http/server.mojo
@saviorand
Copy link
Copy Markdown
Collaborator

I'll look into fixing the pipeline later today and then merge once the tests pass

@saviorand saviorand merged commit fd22a8c into Lightbug-HQ:main Jul 29, 2025
3 checks passed
@saviorand
Copy link
Copy Markdown
Collaborator

Thank you, merged!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants