]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: Fix typos in the h1 subsystem
authorJoseph Herlant <aerostitch@debian.org>
Sun, 25 Nov 2018 18:52:20 +0000 (10:52 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 2 Dec 2018 17:38:02 +0000 (18:38 +0100)
Fixes typos in the code comments of the h1 subsystem.

include/proto/h1.h
src/mux_h1.c

index a39cc0b2e06a723e8ec66ede61fae10d70677396..b29d76b7aee4b6d4e24aa7094428d17a76a9ff59 100644 (file)
@@ -179,7 +179,7 @@ static inline int h1_skip_chunk_crlf(const struct buffer *buf, int start, int st
        const char *ptr = b_peek(buf, start);
        int bytes = 1;
 
-       /* NB: we'll check data availabilty at the end. It's not a
+       /* NB: we'll check data availability at the end. It's not a
         * problem because whatever we match first will be checked
         * against the correct length.
         */
index 4c5bae0fc795f3e91d2cea8783e079e7894682e2..ae0b54b2148c3c23ba9428e21a4cf08fe5f28805 100644 (file)
@@ -811,7 +811,7 @@ static void h1_capture_bad_message(struct h1c *h1c, struct h1s *h1s,
  * Parse HTTP/1 headers. It returns the number of bytes parsed if > 0, or 0 if
  * it couldn't proceed. Parsing errors are reported by setting H1S_F_*_ERROR
  * flag and filling h1s->err_pos and h1s->err_state fields. This functions is
- * responsibile to update the parser state <h1m>.
+ * responsible to update the parser state <h1m>.
  */
 static size_t h1_process_headers(struct h1s *h1s, struct h1m *h1m, struct htx *htx,
                                 struct buffer *buf, size_t *ofs, size_t max)
@@ -956,7 +956,7 @@ static size_t h1_process_headers(struct h1s *h1s, struct h1m *h1m, struct htx *h
  * Parse HTTP/1 body. It returns the number of bytes parsed if > 0, or 0 if it
  * couldn't proceed. Parsing errors are reported by setting H1S_F_*_ERROR flag
  * and filling h1s->err_pos and h1s->err_state fields. This functions is
- * responsibile to update the parser state <h1m>.
+ * responsible to update the parser state <h1m>.
  */
 static size_t h1_process_data(struct h1s *h1s, struct h1m *h1m, struct htx *htx,
                              struct buffer *buf, size_t *ofs, size_t max)