projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0764ab5
)
Fix style in host_matches()
author
Fabian Keil
<fk@fabiankeil.de>
Fri, 28 Aug 2020 07:53:42 +0000
(09:53 +0200)
committer
Fabian Keil
<fk@fabiankeil.de>
Tue, 1 Sep 2020 10:22:42 +0000
(12:22 +0200)
Sponsored by: Robert Klemme
urlmatch.c
patch
|
blob
|
history
diff --git
a/urlmatch.c
b/urlmatch.c
index
868a16b
..
a028361
100644
(file)
--- a/
urlmatch.c
+++ b/
urlmatch.c
@@
-1301,7
+1301,8
@@
static int host_matches(const struct http_request *http,
{
assert(http->host != NULL);
#ifdef FEATURE_PCRE_HOST_PATTERNS
- if (pattern->pattern.url_spec.host_regex_type == PCRE_HOST_PATTERN) {
+ if (pattern->pattern.url_spec.host_regex_type == PCRE_HOST_PATTERN)
+ {
return ((NULL == pattern->pattern.url_spec.host_regex)
|| (0 == regexec(pattern->pattern.url_spec.host_regex,
http->host, 0, NULL, 0)));