Changeset 534 for trunk/zoo-project


Ignore:
Timestamp:
Nov 10, 2014, 12:44:55 PM (8 years ago)
Author:
djay
Message:

Small fix for storing mimetype properly.

Location:
trunk/zoo-project/zoo-kernel
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/zoo-project/zoo-kernel/ZOOMakefile.opts.in

    r527 r534  
    5858JAVA_FILE=@JAVA_FILE@
    5959
    60 CFLAGS=@DEB_DEF@ -fpic ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF
    61 LDFLAGS=-lcurl -L../../thirds/cgic206 -lcgic ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS}  ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi -lcrypto ${MS_LDFLAGS} ${MACOS_LD_FLAGS} ${YAML_LDFLAGS}
    62 
    6360PHPCFLAGS=@PHP_CPPFLAGS@
    6461PHPLDFLAGS=@PHP_LDFLAGS@
     
    7168PERL_ENABLED=@PERL_ENABLED@
    7269PERL_FILE=@PERL_FILE@
     70
     71CFLAGS=@DEB_DEF@ -fpic ${YAML_CFLAGS} ${MACOS_CFLAGS} ${MS_CFLAGS} -I../../thirds/cgic206 -I. -DLINUX_FREE_ISSUE #-DDEBUG #-DDEBUG_SERVICE_CONF
     72LDFLAGS=-lcurl -L../../thirds/cgic206 -lcgic ${GDAL_LIBS} ${XML2LDFLAGS} ${PYTHONLDFLAGS} ${PERLLDFLAGS}  ${PHPLDFLAGS} ${JAVALDFLAGS} ${JSLDFLAGS} -lfcgi -lcrypto ${MS_LDFLAGS} ${MACOS_LD_FLAGS} ${MACOS_LD_NET_FLAGS} ${YAML_LDFLAGS}
     73
  • trunk/zoo-project/zoo-kernel/ulinet.c

    r509 r534  
    180180      fclose(handle.file);
    181181      unlink(handle.filename);
    182       handle.mimeType = NULL;
    183182    }
    184183    else{
    185184      handle.pabyData = NULL;
    186       handle.mimeType = NULL;
    187185      handle.nDataAlloc = handle.nDataLen = 0;
    188186    }
     
    192190    }
    193191    free(handle.mimeType);
     192    handle.mimeType = NULL;
    194193  }
    195194  if(handle0->handle)
     
    298297  }while(still_running); 
    299298  for(i=0;i<hInternet->nb;i++){
    300     curl_easy_getinfo(hInternet->ihandle[i].handle,CURLINFO_CONTENT_TYPE,&hInternet->ihandle[i].mimeType);
     299    char *tmp;
     300    curl_easy_getinfo(hInternet->ihandle[i].handle,CURLINFO_CONTENT_TYPE,&tmp);
     301    hInternet->ihandle[i].mimeType=strdup(tmp);
    301302    curl_multi_remove_handle(hInternet->handle, hInternet->ihandle[i].handle);
    302303    curl_easy_cleanup(hInternet->ihandle[i].handle);
Note: See TracChangeset for help on using the changeset viewer.

Search

Context Navigation

ZOO Sponsors

http://www.zoo-project.org/trac/chrome/site/img/geolabs-logo.pnghttp://www.zoo-project.org/trac/chrome/site/img/neogeo-logo.png http://www.zoo-project.org/trac/chrome/site/img/apptech-logo.png http://www.zoo-project.org/trac/chrome/site/img/3liz-logo.png http://www.zoo-project.org/trac/chrome/site/img/gateway-logo.png

Become a sponsor !

Knowledge partners

http://www.zoo-project.org/trac/chrome/site/img/ocu-logo.png http://www.zoo-project.org/trac/chrome/site/img/gucas-logo.png http://www.zoo-project.org/trac/chrome/site/img/polimi-logo.png http://www.zoo-project.org/trac/chrome/site/img/fem-logo.png http://www.zoo-project.org/trac/chrome/site/img/supsi-logo.png http://www.zoo-project.org/trac/chrome/site/img/cumtb-logo.png

Become a knowledge partner

Related links

http://zoo-project.org/img/ogclogo.png http://zoo-project.org/img/osgeologo.png