CLEANUP: fix typos in the proto_http subsystem
Fixes typos in the code comments of the proto_http subsystem.
diff --git a/include/types/proto_http.h b/include/types/proto_http.h
index 1b10c07..0f341e2 100644
--- a/include/types/proto_http.h
+++ b/include/types/proto_http.h
@@ -187,11 +187,11 @@
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 @@
* 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).
diff --git a/src/proto_http.c b/src/proto_http.c
index 90d1b85..f7222cd 100644
--- a/src/proto_http.c
+++ b/src/proto_http.c
@@ -1214,7 +1214,7 @@
}
}
- /* 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 @@
}
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 @@
}
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 @@
* - 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 @@
/* 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