Skip to content

Conversation

devsnek
Copy link
Member

@devsnek devsnek commented Apr 23, 2025

  • preserve authority from protocol
  • reject some invalid combinations of request lines (e.g. GET *)
  • modify rendering of OPTIONS and CONNECT so that they don't cause new URL to raise.

@@ -593,7 +618,7 @@ impl HttpRecord {
}

#[repr(transparent)]
pub struct HttpRecordResponse(ManuallyDrop<Rc<HttpRecord>>);
pub struct HttpRecordResponse(Option<ManuallyDrop<Rc<HttpRecord>>>);
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a comment here describing when it's None and when Some(...)?

@devsnek devsnek changed the title ???: fix bugs with rendering of authority in serve urls fix: fix bugs with rendering of authority in serve urls Apr 23, 2025
@devsnek devsnek force-pushed the x/authority-fixes branch from 7ef7222 to 1921b87 Compare April 23, 2025 08:23
Copy link
Member

@bartlomieju bartlomieju left a comment

Choose a reason for hiding this comment

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

LGTM

@devsnek devsnek merged commit d843a93 into main Apr 23, 2025
18 checks passed
@devsnek devsnek deleted the x/authority-fixes branch April 23, 2025 09:23
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