summaryrefslogtreecommitdiff
path: root/tests/server/sws.c
diff options
context:
space:
mode:
authorViktor Szakats <vszakats@users.noreply.github.com>2018-06-03 12:14:45 +0000
committerViktor Szakats <vszakats@users.noreply.github.com>2018-06-03 12:14:45 +0000
commit4bd91bc4742dbf194dd7a63519aa1ed32e4db47d (patch)
tree46fa0ad2951fd0cd86c3875b9c065a1aebc54217 /tests/server/sws.c
parent71c39f29651523ffda10d0abc17f9057f54bd356 (diff)
downloadgnurl-4bd91bc4742dbf194dd7a63519aa1ed32e4db47d.tar.gz
gnurl-4bd91bc4742dbf194dd7a63519aa1ed32e4db47d.tar.bz2
gnurl-4bd91bc4742dbf194dd7a63519aa1ed32e4db47d.zip
spelling fixes
Detected using the `codespell` tool (version 1.13.0). Also secure and fix an URL.
Diffstat (limited to 'tests/server/sws.c')
-rw-r--r--tests/server/sws.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 10a87746b..22ef8168a 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -1065,7 +1065,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
char *cmd = NULL;
size_t cmdsize = 0;
FILE *dump;
- bool persistant = TRUE;
+ bool persistent = TRUE;
bool sendfailure = FALSE;
size_t responsesize;
int error = 0;
@@ -1196,7 +1196,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
connection will be closed after the data has been sent to the requesting
client... */
if(strstr(buffer, "swsclose") || !count) {
- persistant = FALSE;
+ persistent = FALSE;
logmsg("connection close instruction \"swsclose\" found in response");
}
if(strstr(buffer, "swsbounce")) {
@@ -1313,7 +1313,7 @@ static int send_doc(curl_socket_t sock, struct httprequest *req)
} while(ptr && *ptr);
}
free(cmd);
- req->open = use_gopher?FALSE:persistant;
+ req->open = use_gopher?FALSE:persistent;
prevtestno = req->testno;
prevpartno = req->partno;
@@ -1968,7 +1968,7 @@ static int service_connection(curl_socket_t msgsock, struct httprequest *req,
/* if we got a CONNECT, loop and get another request as well! */
if(req->open) {
- logmsg("=> persistant connection request ended, awaits new request\n");
+ logmsg("=> persistent connection request ended, awaits new request\n");
return 1;
}