Changeset 954
- Timestamp:
- 12/13/07 15:43:21 (1 year ago)
- Files:
-
- cherokee/trunk/ChangeLog (modified) (1 diff)
- cherokee/trunk/cherokee/buffer.c (modified) (3 diffs)
- cherokee/trunk/cherokee/connection.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
cherokee/trunk/ChangeLog
r952 r954 1 2007-12-13 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 3 * cherokee/connection.c (cherokee_connection_get_request): On 4 Windows it should replace the '\' characters in the request with / 5 characters. 6 7 * cherokee/buffer.c (cherokee_buffer_unescape_uri): Added a couple 8 of TRACE entries. 9 1 10 2007-12-12 Alvaro Lopez Ortega <alvaro@alobbs.com> 2 11 cherokee/trunk/cherokee/buffer.c
r948 r954 41 41 #include "sha1.h" 42 42 43 #define ENTRIES "core,buffer" 43 44 44 45 #define REALLOC_EXTRA_SIZE 16 … … 1016 1017 int len; 1017 1018 1018 #define hex2dec_m(c) ( (int) hex2dec_tab[ ( (unsigned char )(c) ) ] ) 1019 #define hex2dec_m2(c1, c2) ( hex2dec_m(c1) * 16 + hex2dec_m(c2) ) 1019 #define hex2dec_m(c) ( (int) hex2dec_tab[ ( (unsigned char )(c) ) ] ) 1020 #define hex2dec_m2(c1, c2) ( hex2dec_m(c1) * 16 + hex2dec_m(c2) ) 1021 1022 TRACE(ENTRIES, "Prev: %s\n", buffer->buf); 1020 1023 1021 1024 if (unlikely (buffer->buf == NULL)) … … 1055 1058 #undef hex2dec_m2 1056 1059 #undef hex2dec_m 1060 1061 TRACE(ENTRIES, "Post: %s\n", buffer->buf); 1057 1062 return ret_ok; 1058 1063 } cherokee/trunk/cherokee/connection.c
r948 r954 1407 1407 } 1408 1408 1409 #ifdef _WIN32 1410 /* Prevent back-slashes in the request on Windows 1411 */ 1412 TRACE (ENTRIES, "Win32 req before: %s\n", conn->request.buf); 1413 cherokee_buffer_swap_chars (&conn->request, '\\', '/'); 1414 TRACE (ENTRIES, "Win32 req after: %s\n", conn->request.buf); 1415 #endif 1416 1409 1417 /* Short the path. It transforms the request: 1410 1418 * /dir1/dir2/../file in /dir1/file