Skip to content

Commit

Permalink
lib-http: uri: Removed unnecessary checking of percent encoding of qu…
Browse files Browse the repository at this point in the history
…ery and fragment parts.

This is now always performed in lib/uri-util.
  • Loading branch information
stephanbosch authored and sirainen committed Oct 13, 2016
1 parent 5b6dc4c commit 4cdd921
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/lib-http/http-url.c
Expand Up @@ -301,8 +301,6 @@ static bool http_url_do_parse(struct http_url_parser *url_parser)
if ((ret = uri_parse_query(parser, &part)) < 0)
return FALSE;
if (ret > 0) {
if (!uri_data_decode(parser, part, NULL, NULL)) // check only
return FALSE;
if (url != NULL)
url->enc_query = p_strdup(parser->pool, part);
} else if (relative && !have_path && url != NULL) {
Expand All @@ -317,8 +315,6 @@ static bool http_url_do_parse(struct http_url_parser *url_parser)
parser->error = "URL fragment not allowed for HTTP URL in this context";
return FALSE;
}
if (!uri_data_decode(parser, part, NULL, NULL)) // check only
return FALSE;
if (url != NULL)
url->enc_fragment = p_strdup(parser->pool, part);
} else if (relative && !have_path && url != NULL) {
Expand Down

0 comments on commit 4cdd921

Please sign in to comment.