]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix typos in the http subsystem
authorJoseph Herlant <aerostitch@debian.org>
Thu, 15 Nov 2018 21:57:22 +0000 (13:57 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:26:42 +0000 (22:26 +0100)
Fix typos in code comment of the http subsystem.

src/flt_http_comp.c
src/http.c
src/http_conv.c
src/http_fetch.c

index 6092dfc7bcf04c40830497f779e1d0d5311c33b5..b4f093c2a78616cdf6254edb89374c3d8a191b89 100644 (file)
@@ -269,7 +269,7 @@ comp_http_forward_data(struct stream *s, struct filter *filter,
 
        if (!st->initialized) {
                if (!len) {
-                       /* Nothing to foward */
+                       /* Nothing to forward */
                        ret = len;
                }
                else if (st->hdrs_len > len) {
@@ -715,7 +715,7 @@ http_compression_buffer_end(struct comp_state *st, struct stream *s,
         * (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>.
         */
index 8e5f4c87c77c3270161f0941d2b271b40f987552..a8288a02097e263ae1ea2b60d9c9e947f6cb2c35 100644 (file)
@@ -699,7 +699,7 @@ char *http_extract_cookie_value(char *hdr, const char *hdr_end,
        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 @@ int http_parse_qvalue(const char *qvalue, const char **end)
 }
 
 /*
- * 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",
index 42a7616b93efc8b4c35e14e5007c255b638715a3..c6cfdab39fc4a8ffbd2a6831af62c79039ecf8a5 100644 (file)
@@ -218,7 +218,7 @@ static int sample_conv_url_dec(const struct arg *args, struct sample *smp, void
 {
        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.
         */
index a53f0fe9d74882814270f8fda50b25c9519669c6..f8dfe335c946939f47b4b5a03d5c8a9455738729 100644 (file)
@@ -582,8 +582,8 @@ static int smp_fetch_uniqueid(const struct arg *args, struct sample *smp, const
 }
 
 /* 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)
 {