Browse Source

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 12 years ago
parent
commit
90cbe54c01
4 changed files with 4 additions and 4 deletions
  1. 1 1
      parser/parse_body.h
  2. 1 1
      tcp_options.c
  3. 1 1
      tcp_options.h
  4. 1 1
      tcp_read.c

+ 1 - 1
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,

+ 1 - 1
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,

+ 1 - 1
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)*/

+ 1 - 1
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