Skip to content
This repository
Browse code

Fixes header buffer names

  • Loading branch information...
commit d685f452b92ed5927c40f1fa9bdbc7b844debf30 1 parent 3542701
Alvaro Lopez Ortega authored February 18, 2012

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. 12  cherokee/post.c
12  cherokee/post.c
@@ -184,11 +184,11 @@ remove_surplus (cherokee_post_t    *post,
184 184
 	if (post->len > 0) {
185 185
 		/* Plain post: read what's pointed by Content-Length
186 186
 		 */
187  
-		surplus_len = MIN (req->incoming_header.len - header_len, post->len);
  187
+		surplus_len = MIN (req->header_buffer_in.len - header_len, post->len);
188 188
 	} else {
189 189
 		/* Chunked: Assume everything after the header is POST
190 190
 		 */
191  
-		surplus_len = req->incoming_header.len - header_len;
  191
+		surplus_len = req->header_buffer_in.len - header_len;
192 192
 	}
193 193
 	if (surplus_len <= 0) {
194 194
 		return ret_ok;
@@ -199,14 +199,14 @@ remove_surplus (cherokee_post_t    *post,
199 199
 	/* Move the surplus
200 200
 	 */
201 201
 	cherokee_buffer_add (&post->header_surplus,
202  
-			     req->incoming_header.buf + header_len,
  202
+			     req->header_buffer_in.buf + header_len,
203 203
 			     surplus_len);
204 204
 
205  
-	cherokee_buffer_remove_chunk (&req->incoming_header,
  205
+	cherokee_buffer_remove_chunk (&req->header_buffer_in,
206 206
 				      header_len, surplus_len);
207 207
 
208 208
 	TRACE (ENTRIES, "POST surplus: incoming_header is %d bytes (header len=%d)\n",
209  
-	       req->incoming_header.len, header_len);
  209
+	       req->header_buffer_in.len, header_len);
210 210
 
211 211
 	return ret_ok;
212 212
 }
@@ -361,7 +361,7 @@ process_chunk (cherokee_post_t   *post,
361 361
 	 */
362 362
 	if (! cherokee_buffer_is_empty(in)) {
363 363
 		TRACE (ENTRIES, "There are %d left-over bytes in the post buffer -> incoming header", in->len);
364  
-/* 		cherokee_buffer_add_buffer (&req->incoming_header, in); */
  364
+/* 		cherokee_buffer_add_buffer (&req->header_buffer_in, in); */
365 365
 /* 		cherokee_buffer_clean (in); */
366 366
 	}
367 367
 

0 notes on commit d685f45

Please sign in to comment.
Something went wrong with that request. Please try again.