Skip to content
Snippets Groups Projects
Commit 2a6f9aa1 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Andres Garcia pointed out that we searched for a slash badly since it is

converted and thus we must search for backslash on windows
parent 570455b2
No related branches found
No related tags found
No related merge requests found
......@@ -180,10 +180,16 @@ CURLcode Curl_file_done(struct connectdata *conn,
return CURLE_OK;
}
#if defined(WIN32) || defined(__EMX__)
#define DIRSEP '\\'
#else
#define DIRSEP '/'
#endif
static CURLcode file_upload(struct connectdata *conn)
{
struct FILEPROTO *file = conn->proto.file;
char *dir = strchr(file->path, '/');
char *dir = strchr(file->path, DIRSEP);
FILE *fp;
CURLcode res=CURLE_OK;
struct SessionHandle *data = conn->data;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment