Commit f9ea1c3b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

netCDF: added support for opendap files by https

parent 170c3132
......@@ -84,7 +84,7 @@ int cdf_open(const char *path, int omode, int *ncidp)
size_t chunksizehint = 0;
#if defined (HAVE_LIBNC_DAP)
if ( memcmp(path, "http:", 5) == 0 ) dapfile = TRUE;
if ( strncmp(path, "http:", 5) == 0 || strncmp(path, "https:", 6) == 0 ) dapfile = TRUE;
#endif
if ( dapfile )
......
......@@ -161,7 +161,7 @@ int getFiletype(const char *filename, int *byteorder)
if ( fileID == CDI_UNDEFID )
{
if ( memcmp(filename, "http:", 5) == 0 )
if ( strncmp(filename, "http:", 5) == 0 || strncmp(filename, "https:", 6) == 0 )
return (FILETYPE_NC);
else
return (CDI_ESYSTEM);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment