Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-esicookies
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-esicookies
Commits
ac980052
Commit
ac980052
authored
Oct 10, 2014
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check if varnish gives us http_IsHdr
parent
a0e8bf36
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
configure.ac
configure.ac
+5
-0
vmod_esicookies.c
src/vmod_esicookies.c
+2
-0
No files found.
configure.ac
View file @
ac980052
...
...
@@ -70,6 +70,11 @@ if test "x$VMODDIR" = x; then
fi
fi
save_CPPFLAGS="${CPPFLAGS}"
CPPFLAGS="${CPPFLAGS} -I${VARNISHSRC}/include -I${VARNISHSRC}/bin/varnishd"
AC_CHECK_DECLS([http_IsHdr], [], [], [#include "cache.h"])
CPPFLAGS="${save_CPPFLAGS}"
# This corresponds to FreeBSD's WARNS level 6
DEVELOPER_CFLAGS="-Wall -Wstrict-prototypes \
-Wmissing-prototypes \
...
...
src/vmod_esicookies.c
View file @
ac980052
...
...
@@ -75,6 +75,7 @@ vrt_selecthttp(const struct sess *sp, enum gethdr_e where)
return
(
hp
);
}
#if (HAVE_DECL_HTTP_ISHDR != 1)
static
int
http_IsHdr
(
const
txt
*
hh
,
const
char
*
hdr
)
{
...
...
@@ -88,6 +89,7 @@ http_IsHdr(const txt *hh, const char *hdr)
hdr
++
;
return
(
!
strncasecmp
(
hdr
,
hh
->
b
,
l
));
}
#endif
/* ----------------------------------------------------------------------
* our own per-session workspaces for modifications of the http0 object.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment