Skip to content

Commit 937597c

Browse files
Shaun Miranicmeister2
authored andcommitted
fuzzer: Allow HSTS and Alt-Svc over plain HTTP
1 parent 0dc42e4 commit 937597c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

curl_fuzzer.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ int fuzz_initialize_fuzz_data(FUZZ_DATA *fuzz,
155155
/* Check for verbose mode. */
156156
fuzz->verbose = (getenv("FUZZ_VERBOSE") != NULL);
157157

158+
FCHECK(setenv("CURL_HSTS_HTTP", "1", 0) == 0);
159+
FCHECK(setenv("CURL_ALTSVC_HTTP", "1", 0) == 0);
160+
158161
EXIT_LABEL:
159162

160163
return rc;

0 commit comments

Comments
 (0)