aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrendon Jones <brendonj@waikato.ac.nz>2019-08-19 14:12:35 +1200
committerBrendon Jones <brendonj@waikato.ac.nz>2019-08-19 14:12:35 +1200
commit87b5459cb9fff86aee8917747ff0ca5610c6c235 (patch)
tree7cdd65a40b8d42d0b709529d66e19cbe2cff8697
parente5c96a6a1d579d35764b7d4d97679fc4536433c0 (diff)
downloadamplet2-87b5459cb9fff86aee8917747ff0ca5610c6c235.tar.gz
amplet2-87b5459cb9fff86aee8917747ff0ca5610c6c235.tar.bz2
amplet2-87b5459cb9fff86aee8917747ff0ca5610c6c235.zip
Define a default useragent for the HTTP test.
-rw-r--r--src/tests/http/http.c2
-rw-r--r--src/tests/http/http.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/tests/http/http.c b/src/tests/http/http.c
index 40bdfdc..01e43dd 100644
--- a/src/tests/http/http.c
+++ b/src/tests/http/http.c
@@ -1410,7 +1410,7 @@ amp_test_result_t* run_http(int argc, char *argv[],
options.sourcev6 = NULL;
options.sslversion = CURL_SSLVERSION_DEFAULT;
options.dscp = DEFAULT_DSCP_VALUE;
- options.useragent = "AMP HTTP test agent";
+ options.useragent = DEFAULT_HTTP_USERAGENT;
options.proxy = NULL;
while ( (opt = getopt_long(argc, argv,
diff --git a/src/tests/http/http.h b/src/tests/http/http.h
index 101683a..bfd807c 100644
--- a/src/tests/http/http.h
+++ b/src/tests/http/http.h
@@ -55,6 +55,8 @@
#define MAX_URL_LEN (MAX_PATH_LEN + MAX_DNS_NAME_LEN + 1)
+#define DEFAULT_HTTP_USERAGENT "AMP HTTP test agent"
+
/*
* User defined test options that control packet size and timing.