{
std::string rv = filepath;
+ /* strip docroot */
+ if (server_docroot.length() > 0) {
+ if (rv.compare(0, server_docroot.length(), server_docroot) == 0 ) {
+ rv = rv.substr(server_docroot.length());
+ }
+ }
+
/* replace all G_DIR_SEPARATOR with '/' */
size_t look_here = 0;
size_t found_here;
look_here = found_here + 1;
}
- /* strip docroot */
- if (server_docroot.length() > 0) {
- if (rv.compare(0, server_docroot.length(), server_docroot) == 0 ) {
- rv = rv.substr(server_docroot.length());
- }
- }
-
CURL *curl;
char *ue;
curl = curl_easy_init();