Skip to content

Build request.url from structured components#3326

Merged
Kludex merged 1 commit into
mainfrom
build-request-url-from-components
Jun 11, 2026
Merged

Build request.url from structured components#3326
Kludex merged 1 commit into
mainfrom
build-request-url-from-components

Conversation

@Kludex

@Kludex Kludex commented Jun 11, 2026

Copy link
Copy Markdown
Owner

Construct request.url from the scope by assembling structured URL components and serializing them, instead of concatenating {scheme}://{host}{path} strings by hand.

This keeps the path from being placed directly against the authority when it does not start with /, so the resulting URL parses back into the components it was built from.

AI Disclaimer

This PR was developed with the assistance of either Claude or Codex. I've reviewed and verified the changes.

@github-actions

github-actions Bot commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ebb29aafd9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread starlette/datastructures.py Outdated

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

1 issue found across 2 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread starlette/datastructures.py Outdated
Co-authored-by: nic-lovin <10554285+nic-lovin@users.noreply.github.com>
@Kludex Kludex force-pushed the build-request-url-from-components branch from ebb29aa to 54f6de2 Compare June 11, 2026 05:50
@Kludex Kludex enabled auto-merge (squash) June 11, 2026 05:51
@Kludex Kludex merged commit 167b585 into main Jun 11, 2026
12 checks passed
@Kludex Kludex deleted the build-request-url-from-components branch June 11, 2026 05:52
@chatgpt-codex-connector chatgpt-codex-connector Bot mentioned this pull request Jun 11, 2026
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.

1 participant