Skip to content

Commit

Permalink
RFC 7230 forbids generation of userinfo subcomponent of https URL (#405)
Browse files Browse the repository at this point in the history
  • Loading branch information
yadij committed Jun 12, 2019
1 parent 3532355 commit e1e861e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/anyp/Uri.cc
Expand Up @@ -496,7 +496,7 @@ AnyP::Uri::absolute() const
if (getScheme() != AnyP::PROTO_URN) {
absolute_.append("//", 2);
const bool omitUserInfo = getScheme() == AnyP::PROTO_HTTP ||
getScheme() != AnyP::PROTO_HTTPS ||
getScheme() == AnyP::PROTO_HTTPS ||
userInfo().isEmpty();
if (!omitUserInfo) {
absolute_.append(userInfo());
Expand Down

0 comments on commit e1e861e

Please sign in to comment.