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

Parse HTTP target starting with // #79

Closed
gregw opened this issue Feb 15, 2016 · 0 comments
Closed

Parse HTTP target starting with // #79

gregw opened this issue Feb 15, 2016 · 0 comments
Assignees
Labels
Bug For general bugs on Jetty side
Milestone

Comments

@gregw
Copy link
Contributor

gregw commented Feb 15, 2016

The HTTP specification rfc7230 5.3 says that a request line has a target that is either:

request-target = origin-form
                    / absolute-form
                    / authority-form
                    / asterisk-form
origin-form    = absolute-path [ "?" query ]

so essentially it is either an absolute URI, a URI path, an authority or an asterisk.

However, HttpURI class treats a URI like //foo/bar as host=foo path=/bar, which is correct for URIs generally not not specifically for a HTTP target.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For general bugs on Jetty side
Projects
None yet
Development

No branches or pull requests

1 participant