Browse code

- fixed missing l: support in tcp pre-parsing

Andrei Pelinescu-Onciul authored on 13/05/2003 17:21:35
Showing 3 changed files
... ...
@@ -25,7 +25,7 @@
25 25
 VERSION = 0
26 26
 PATCHLEVEL = 8
27 27
 SUBLEVEL =   11
28
-EXTRAVERSION = pre24
28
+EXTRAVERSION = pre25
29 29
 
30 30
 RELEASE=$(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
31 31
 OS = $(shell uname -s | sed -e s/SunOS/solaris/ | tr "[A-Z]" "[a-z]")
... ...
@@ -34,6 +34,8 @@ x fix bind_address for tcp (in some  way)
34 34
 - tcp_destroy (called on ser exit)
35 35
 - BUG:?? ipv6 only and try to send to ipv4 => getsendsocket=>0 (send_ipv6=0)
36 36
   the reverse is also true
37
+- SUBST lumps for replies (involves setting the send_socket in forward_reply, 
38
+  before build_res_from_res, & adding it to buid_res_from_res).
37 39
 
38 40
 
39 41
 High priority:
... ...
@@ -29,6 +29,7 @@
29 29
  * --------
30 30
  * 2002-12-??  created by andrei.
31 31
  * 2003-02-10  zero term before calling receive_msg & undo afterwards (andrei)
32
+ * 2003-05-13  l: (short form of Content-Length) is now recognized (andrei)
32 33
  */
33 34
 
34 35
 #ifdef USE_TCP
... ...
@@ -125,7 +126,13 @@ int tcp_read_headers(struct tcp_req *r, int fd)
125 125
 					case 'c': \
126 126
 						if(!r->has_content_len) r->state=H_CONT_LEN1; \
127 127
 						else r->state=H_SKIP; \
128
-						break 
128
+						break; \
129
+					case 'l': \
130
+					case 'L': \
131
+						/* short form for Content-Length */ \
132
+						if (!r->has_content_len) r->state=H_L_COLON; \
133
+						else r->state=H_SKIP; \
134
+						break
129 135
 						
130 136
 	#define change_state(upper, lower, newstate)\
131 137
 					switch(*p){ \
... ...
@@ -246,6 +253,12 @@ int tcp_read_headers(struct tcp_req *r, int fd)
246 246
 						r->state=H_CONT_LEN1; 
247 247
 						r->start=p;
248 248
 						break;
249
+					case 'l':
250
+					case 'L':
251
+						/* short form for Content-Length */
252
+						r->state=H_L_COLON;
253
+						r->start=p;
254
+						break;
249 255
 					default:
250 256
 						r->state=H_SKIP;
251 257
 						r->start=p;