diff --git a/ChangeLog b/ChangeLog index 2279fdff..a61a05ab 100644 --- a/ChangeLog +++ b/ChangeLog @@ -10,8 +10,10 @@ - new functions for embedded module - reliable harakiri - better Makefiles -- proper timeotu handling in apache2 module +- proper timeout handling in apache2 module - endianess fixes all over the place +- paste support +- Django app for managing and monitoring the uWSGI server - lot of bugfixes and optimizations *** 20091129 Version 0.9.3 *** diff --git a/apache2/mod_uwsgi.c b/apache2/mod_uwsgi.c index a9d49c06..69e171a1 100644 --- a/apache2/mod_uwsgi.c +++ b/apache2/mod_uwsgi.c @@ -96,9 +96,9 @@ static int uwsgi_add_var(struct iovec *vec, int i, char *key, char *value, uint1 #if APR_IS_BIGENDIAN ptr = (char *) &vec[i+2].iov_len; - vec[i].iov_base = ptr+3 ; + vec[i].iov_base = ptr+sizeof(long)-1 ; vec[i].iov_len = 1 ; - vec[i+1].iov_base = ptr+2 ; + vec[i+1].iov_base = ptr+sizeof(long)-2 ; vec[i+1].iov_len = 1 ; #else vec[i].iov_base = &vec[i+1].iov_len ; @@ -116,9 +116,9 @@ static int uwsgi_add_var(struct iovec *vec, int i, char *key, char *value, uint1 #if APR_IS_BIGENDIAN ptr = (char *) &vec[i+5].iov_len; - vec[i+3].iov_base = ptr+3 ; + vec[i+3].iov_base = ptr+sizeof(long)-1 ; vec[i+3].iov_len = 1 ; - vec[i+4].iov_base = ptr+2 ; + vec[i+4].iov_base = ptr+sizeof(long)-2 ; vec[i+4].iov_len = 1 ; #else vec[i+2].iov_base = &vec[i+3].iov_len ;