Module: sip-router
Branch: master
Commit: 90cbe54c01fe9513a0041f19e8a73f3ff7dccaf6
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=90cbe54…
Author: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
Committer: Hugh Waite <hugh.waite(a)crocodile-rcs.com>
Date: Thu Mar 14 10:41:24 2013 +0000
core: Fix Content-Length typos
One typo in the HTTP11CONTINUE response headers
One in the tcp option help string for 'accept_no_cl'
Two in code comments
---
parser/parse_body.h | 2 +-
tcp_options.c | 2 +-
tcp_options.h | 2 +-
tcp_read.c | 2 +-
4 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/parser/parse_body.h b/parser/parse_body.h
index a8c4f92..ff50d8b 100644
--- a/parser/parse_body.h
+++ b/parser/parse_body.h
@@ -42,7 +42,7 @@ char *get_body_part( struct sip_msg *msg,
int *len);
/*! \brief Returns the pointer within the msg body to the given part matching
- * type/subtype, content id or content lenght. It sets the length.
+ * type/subtype, content id or content length. It sets the length.
* The result can be the whole msg body, or a part of a multipart body.
*/
char *get_body_part_by_filter(struct sip_msg *msg,
diff --git a/tcp_options.c b/tcp_options.c
index ce3a381..5069948 100644
--- a/tcp_options.c
+++ b/tcp_options.c
@@ -115,7 +115,7 @@ static cfg_def_t tcp_cfg_def[] = {
{ "new_conn_alias_flags", CFG_VAR_INT | CFG_ATOMIC, 0, 2, 0, 0,
"flags for the def. aliases for a new conn. (FORCE_ADD:1, REPLACE:2 "},
{ "accept_no_cl", CFG_VAR_INT | CFG_ATOMIC, 0, 1, 0, 0,
- "accept TCP messges without Content-Lenght "},
+ "accept TCP messges without Content-Length "},
/* internal and/or "fixed" versions of some vars
(not supposed to be writeable, read will provide only debugging value*/
{ "rd_buf_size", CFG_VAR_INT | CFG_ATOMIC, 512, 16777216, 0,
0,
diff --git a/tcp_options.h b/tcp_options.h
index 49a3e34..ba9dd4b 100644
--- a/tcp_options.h
+++ b/tcp_options.h
@@ -139,7 +139,7 @@ struct cfg_group_tcp{
int accept_aliases;
int alias_flags;
int new_conn_alias_flags;
- int accept_no_cl; /* on/off - accpet messages without content-lenght */
+ int accept_no_cl; /* on/off - accept messages without content-length */
/* internal, "fixed" vars */
unsigned int rd_buf_size; /* read buffer size (should be > max. datagram)*/
diff --git a/tcp_read.c b/tcp_read.c
index b969e6c..3c01ad9 100644
--- a/tcp_read.c
+++ b/tcp_read.c
@@ -106,7 +106,7 @@ int is_msg_complete(struct tcp_req* r);
#endif /* USE_STUN */
#ifdef READ_HTTP11
-#define HTTP11CONTINUE "HTTP/1.1 100 Continue\r\nContent-Lenght: 0\r\n\r\n"
+#define HTTP11CONTINUE "HTTP/1.1 100 Continue\r\nContent-Length: 0\r\n\r\n"
#define HTTP11CONTINUE_LEN (sizeof(HTTP11CONTINUE)-1)
#endif