Lines 2945-2954
Link Here
|
2945 |
unsigned int i; |
2945 |
unsigned int i; |
2946 |
BOOL need_content_length_header = (s->content_length == 0); |
2946 |
BOOL need_content_length_header = (s->content_length == 0); |
2947 |
|
2947 |
|
2948 |
cnt -= 2; /* For our two special headers: |
|
|
2949 |
* HTTP_TOMCATURI_XXXXXXXX |
2950 |
* HTTP_TOMCATWORKER_XXXXXXXX |
2951 |
*/ |
2952 |
/* allocate an extra header slot in case we need to add a content-length header */ |
2948 |
/* allocate an extra header slot in case we need to add a content-length header */ |
2953 |
s->headers_names = |
2949 |
s->headers_names = |
2954 |
jk_pool_alloc(&private_data->p, (cnt + 1) * sizeof(char *)); |
2950 |
jk_pool_alloc(&private_data->p, (cnt + 1) * sizeof(char *)); |
Lines 2973-2978
Link Here
|
2973 |
strlen(WORKER_HEADER_NAME))) { |
2969 |
strlen(WORKER_HEADER_NAME))) { |
2974 |
/* Skip redirector headers */ |
2970 |
/* Skip redirector headers */ |
2975 |
real_header = JK_FALSE; |
2971 |
real_header = JK_FALSE; |
|
|
2972 |
cnt--; |
2976 |
} |
2973 |
} |
2977 |
else if (!strnicmp(tmp, QUERY_HEADER_NAME, |
2974 |
else if (!strnicmp(tmp, QUERY_HEADER_NAME, |
2978 |
strlen(QUERY_HEADER_NAME))) { |
2975 |
strlen(QUERY_HEADER_NAME))) { |