fixes nametrans

Sun, 23 Oct 2016 11:12:12 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sun, 23 Oct 2016 11:12:12 +0200
changeset 117
a94cf2e94492
parent 116
d7a186cf87f6
child 118
38bf6dd8f4e7

fixes nametrans

src/server/daemon/httprequest.c file | annotate | diff | comparison | revisions
src/server/safs/nametrans.c file | annotate | diff | comparison | revisions
--- a/src/server/daemon/httprequest.c	Sun Oct 23 10:52:54 2016 +0200
+++ b/src/server/daemon/httprequest.c	Sun Oct 23 11:12:12 2016 +0200
@@ -578,6 +578,9 @@
                 // save nsapi context
                 // add +1 to start next round with next function
                 rq->context.dtable_index = i + 1;
+            } else if(ret == REQ_PROCEED) {
+                char *pp = pblock_findkeyval(pb_key_ppath, rq->rq.vars);
+                pblock_kvinsert(pb_key_path, pp, strlen(pp), rq->rq.vars);
             }
 
             return ret;
--- a/src/server/safs/nametrans.c	Sun Oct 23 10:52:54 2016 +0200
+++ b/src/server/safs/nametrans.c	Sun Oct 23 11:12:12 2016 +0200
@@ -147,15 +147,6 @@
         uri++;
     }
     
-    
-    sstr_t ppath = util_path_append(sn->pool, dir, uri);
-    
-    pblock_kvinsert(
-            pb_key_ppath,
-            ppath.ptr,
-            ppath.length,
-            rq->vars);
-    
     request_set_path(sstr(dir), sstr(uri), rq->vars);
     
     if(name) {

mercurial