CLEANUP: Fix typos in the http subsystem
Fix typos in code comment of the http subsystem.
diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c
index 6092dfc..b4f093c 100644
--- a/src/flt_http_comp.c
+++ b/src/flt_http_comp.c
@@ -269,7 +269,7 @@
if (!st->initialized) {
if (!len) {
- /* Nothing to foward */
+ /* Nothing to forward */
ret = len;
}
else if (st->hdrs_len > len) {
@@ -715,7 +715,7 @@
* (chunk size, trailers, ...).
*/
- /* Write real size at the begining of the chunk, no need of wrapping.
+ /* Write real size at the beginning of the chunk, no need of wrapping.
* We write the chunk using a dynamic length and adjust out->p and out->i
* accordingly afterwards. That will move <out> away from <data>.
*/
diff --git a/src/http.c b/src/http.c
index 8e5f4c8..a8288a0 100644
--- a/src/http.c
+++ b/src/http.c
@@ -699,7 +699,7 @@
return NULL;
}
-/* Parses a qvalue and returns it multipled by 1000, from 0 to 1000. If the
+/* Parses a qvalue and returns it multiplied by 1000, from 0 to 1000. If the
* value is larger than 1000, it is bound to 1000. The parser consumes up to
* 1 digit, one dot and 3 digits and stops on the first invalid character.
* Unparsable qvalues return 1000 as "q=1.000".
@@ -735,7 +735,7 @@
}
/*
- * Given a url parameter, find the starting position of the first occurence,
+ * Given a url parameter, find the starting position of the first occurrence,
* or NULL if the parameter is not found.
*
* Example: if query_string is "yo=mama;ye=daddy" and url_param_name is "ye",
diff --git a/src/http_conv.c b/src/http_conv.c
index 42a7616..c6cfdab 100644
--- a/src/http_conv.c
+++ b/src/http_conv.c
@@ -218,7 +218,7 @@
{
int len;
- /* If the constant flag is set or if not size is avalaible at
+ /* If the constant flag is set or if not size is available at
* the end of the buffer, copy the string in other buffer
* before decoding.
*/
diff --git a/src/http_fetch.c b/src/http_fetch.c
index a53f0fe..f8dfe33 100644
--- a/src/http_fetch.c
+++ b/src/http_fetch.c
@@ -582,8 +582,8 @@
}
/* Returns a string block containing all headers including the
- * empty line wich separes headers from the body. This is useful
- * form some headers analysis.
+ * empty line which separes headers from the body. This is useful
+ * for some headers analysis.
*/
static int smp_fetch_hdrs(const struct arg *args, struct sample *smp, const char *kw, void *private)
{