Browse code

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

Hugh Waite authored on 14/03/2013 10:41:24
Showing 4 changed files
... ...
@@ -42,7 +42,7 @@ char *get_body_part(	struct sip_msg *msg,
42 42
 			int *len);
43 43
 
44 44
 /*! \brief Returns the pointer within the msg body to the given part matching
45
- * type/subtype, content id or content lenght. It sets the length.
45
+ * type/subtype, content id or content length. It sets the length.
46 46
  * The result can be the whole msg body, or a part of a multipart body.
47 47
  */
48 48
 char *get_body_part_by_filter(struct sip_msg *msg,
... ...
@@ -115,7 +115,7 @@ static cfg_def_t tcp_cfg_def[] = {
115 115
 	{ "new_conn_alias_flags", CFG_VAR_INT | CFG_ATOMIC, 0,    2,  0,         0,
116 116
 		"flags for the def. aliases for a new conn. (FORCE_ADD:1, REPLACE:2 "},
117 117
 	{ "accept_no_cl",   CFG_VAR_INT | CFG_ATOMIC,   0,        1,  0,         0,
118
-		"accept TCP messges without Content-Lenght "},
118
+		"accept TCP messges without Content-Length "},
119 119
 	/* internal and/or "fixed" versions of some vars
120 120
 	   (not supposed to be writeable, read will provide only debugging value*/
121 121
 	{ "rd_buf_size", CFG_VAR_INT | CFG_ATOMIC,    512,    16777216,  0,         0,
... ...
@@ -139,7 +139,7 @@ struct cfg_group_tcp{
139 139
 	int accept_aliases;
140 140
 	int alias_flags;
141 141
 	int new_conn_alias_flags;
142
-	int accept_no_cl;  /* on/off - accpet messages without content-lenght */
142
+	int accept_no_cl;  /* on/off - accept messages without content-length */
143 143
 
144 144
 	/* internal, "fixed" vars */
145 145
 	unsigned int rd_buf_size; /* read buffer size (should be > max. datagram)*/
... ...
@@ -106,7 +106,7 @@ int is_msg_complete(struct tcp_req* r);
106 106
 #endif /* USE_STUN */
107 107
 
108 108
 #ifdef READ_HTTP11
109
-#define HTTP11CONTINUE	"HTTP/1.1 100 Continue\r\nContent-Lenght: 0\r\n\r\n"
109
+#define HTTP11CONTINUE	"HTTP/1.1 100 Continue\r\nContent-Length: 0\r\n\r\n"
110 110
 #define HTTP11CONTINUE_LEN	(sizeof(HTTP11CONTINUE)-1)
111 111
 #endif
112 112