--- parser3/src/include/pa_request_info.h 2016/11/24 22:18:59 1.10 +++ parser3/src/include/pa_request_info.h 2016/11/25 23:35:44 1.11 @@ -8,7 +8,7 @@ #ifndef PA_REQUEST_INFO_H #define PA_REQUEST_INFO_H -#define IDENT_PA_REQUEST_INFO_H "$Id: pa_request_info.h,v 1.10 2016/11/24 22:18:59 moko Exp $" +#define IDENT_PA_REQUEST_INFO_H "$Id: pa_request_info.h,v 1.11 2016/11/25 23:35:44 moko Exp $" /// some information from web server class Request_info { @@ -41,8 +41,8 @@ public: ); } - static const char* remove_absolute_uri(const char *auri){ - if(*auri == '/') + static const char* strip_absolute_uri(const char *auri){ + if(!uri || *auri == '/') return auri; // extractring https?://site.name prefix allowed by http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2