]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: fix typos in the proto_http subsystem
authorJoseph Herlant <aerostitch@debian.org>
Thu, 15 Nov 2018 17:25:36 +0000 (09:25 -0800)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 21:23:15 +0000 (22:23 +0100)
Fixes typos in the code comments of the proto_http subsystem.

include/types/proto_http.h
src/proto_http.c

index 1b10c0790d10567ad95c1ecce12c2f7cf7ca1359..0f341e2ee45d797841187a178000553a6e5ac05d 100644 (file)
@@ -187,11 +187,11 @@ enum {
        STAT_STATUS_INIT = 0,
        STAT_STATUS_DENY,       /* action denied */
        STAT_STATUS_DONE,       /* the action is successful */
-       STAT_STATUS_ERRP,       /* an error occured due to invalid values in parameters */
-       STAT_STATUS_EXCD,       /* an error occured because the buffer couldn't store all data */
+       STAT_STATUS_ERRP,       /* an error occurred due to invalid values in parameters */
+       STAT_STATUS_EXCD,       /* an error occurred because the buffer couldn't store all data */
        STAT_STATUS_NONE,       /* nothing happened (no action chosen or servers state didn't change) */
        STAT_STATUS_PART,       /* the action is partially successful */
-       STAT_STATUS_UNKN,       /* an unknown error occured, shouldn't happen */
+       STAT_STATUS_UNKN,       /* an unknown error occurred, shouldn't happen */
        STAT_STATUS_SIZE
 };
 
@@ -207,7 +207,7 @@ enum {
  *                             During parsing, it points to last header seen
  *                             for states after START. When in HTTP_MSG_BODY,
  *                             eoh points to the first byte of the last CRLF
- *                             preceeding data. Relative to buffer's origin.
+ *                             preceding data. Relative to buffer's origin.
  *                             This value then remains unchanged till the end
  *                             so that we can rewind the buffer to change some
  *                             headers if needed (eg: http-send-name-header).
index 90d1b859c70ef08e17f5c4d561be9bc5caec6329..f7222cdd162a1a442b4e253edcea19e2ed00067f 100644 (file)
@@ -1214,7 +1214,7 @@ int http_wait_for_request(struct stream *s, struct channel *req, int an_bit)
                        }
                }
 
-               /* nothing to fail, let's reply normaly */
+               /* nothing to fail, let's reply normally */
                txn->status = 200;
                http_reply_and_close(s, txn->status, http_error_message(s));
                if (!(s->flags & SF_ERR_MASK))
@@ -2182,7 +2182,7 @@ resume_execution:
                        }
                        break;
 
-               /* other flags exists, but normaly, they never be matched. */
+               /* other flags exists, but normally, they never be matched. */
                default:
                        break;
                }
@@ -2551,7 +2551,7 @@ resume_execution:
                        }
                        break;
 
-               /* other flags exists, but normaly, they never be matched. */
+               /* other flags exists, but normally, they never be matched. */
                default:
                        break;
                }
@@ -6580,7 +6580,7 @@ void manage_client_side_cookies(struct stream *s, struct channel *req)
                                 * - delete the complete cookie if we're in insert+indirect mode, so that
                                 *   the server never sees it ;
                                 * - remove the server id from the cookie value, and tag the cookie as an
-                                *   application cookie so that it does not get accidentely removed later,
+                                *   application cookie so that it does not get accidently removed later,
                                 *   if we're in cookie prefix mode
                                 */
                                if ((s->be->ck_opts & PR_CK_PFX) && (delim != val_end)) {
@@ -7775,7 +7775,7 @@ void http_reset_txn(struct stream *s)
 
        /* We must trim any excess data from the response buffer, because we
         * may have blocked an invalid response from a server that we don't
-        * want to accidentely forward once we disable the analysers, nor do
+        * want to accidently forward once we disable the analysers, nor do
         * we want those data to come along with next response. A typical
         * example of such data would be from a buggy server responding to
         * a HEAD with some data, or sending more than the advertised