Changeset 22524
- Timestamp:
- 06/15/09 21:44:03 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgard/core/midgard/src/midgard_http_host.c
r21529 r22524 51 51 52 52 /* This is '/' request */ 53 if(!s) { 53 /* Also check if uri is not get method string */ 54 if(!s || (s && (*s)[0] == '?')) { 54 55 self->uri = g_strdup(uri); 55 56 self->prefix = NULL; … … 60 61 /* note that we start from 1 ( which is empty or null value before '/' ) */ 61 62 while(s[i] != NULL){ 62 63 64 /* Check if it's not part of get method */ 65 gchar *getmark = g_strstr_len((const gchar *)s[i], strlen(s[i]), "?"); 66 if (getmark) 67 break; 68 63 69 /* We do not need empty string after the trailing slash, 64 70 * or arguments from url like /a//b/. */
