Browse Source

use GLOBAL_DBDIR instead of "DB"

release/v0.1
jl777 9 years ago
parent
commit
53caf2cbd9
  1. 11
      iguana/iguana_rpc.c

11
iguana/iguana_rpc.c

@ -837,12 +837,11 @@ char *SuperNET_rpcparse(struct supernet_info *myinfo,char *retbuf,int32_t bufsiz
j = i = 0; j = i = 0;
filetype[0] = 0; filetype[0] = 0;
//printf("url.(%s) method.(%s)\n",&url[i],urlmethod); //printf("url.(%s) method.(%s)\n",&url[i],urlmethod);
#ifdef __PNACL__ #ifdef __PNACL__
char *prefix="DB/"; snprintf(furl,sizeof(furl),"%s/%s",GLOBAL_DBDIR,url+1);
snprintf(furl, sizeof furl, "%s%s", prefix,url+1); #else
#else snprintf(furl,sizeof(furl),"%s",url+1);
snprintf(furl, sizeof furl, "%s", url+1); #endif
#endif
if ( strcmp(&url[i],"/") == 0 && strcmp(urlmethod,"GET") == 0 ) if ( strcmp(&url[i],"/") == 0 && strcmp(urlmethod,"GET") == 0 )
{ {
static int counter; static int counter;

Loading…
Cancel
Save