CURLE_BAD_CONTENT_ENCODING: now used for transfer encoding too
authorDaniel Stenberg <daniel@haxx.se>
Tue, 12 Apr 2011 20:09:18 +0000 (22:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Apr 2011 17:46:21 +0000 (19:46 +0200)
include/curl/curl.h
lib/strerror.c

index 1a7ba76952092d13c694b08b1e583d8b62b688ce..b44649588f301880d3bce95dd34b25653af01342 100644 (file)
@@ -467,7 +467,7 @@ typedef enum {
   CURLE_SSL_CERTPROBLEM,         /* 58 - problem with the local certificate */
   CURLE_SSL_CIPHER,              /* 59 - couldn't use specified cipher */
   CURLE_SSL_CACERT,              /* 60 - problem with the CA cert (path?) */
-  CURLE_BAD_CONTENT_ENCODING,    /* 61 - Unrecognized transfer encoding */
+  CURLE_BAD_CONTENT_ENCODING,    /* 61 - Unrecognized/bad encoding */
   CURLE_LDAP_INVALID_URL,        /* 62 - Invalid LDAP URL */
   CURLE_FILESIZE_EXCEEDED,       /* 63 - Maximum file size exceeded */
   CURLE_USE_SSL_FAILED,          /* 64 - Requested FTP SSL level failed */
index 8144f78f05ba16d3f28743f5931ae560f0f348ee..59f2df5f789e30feb42b22c5c2670a7d4ad30fc2 100644 (file)
@@ -211,7 +211,7 @@ curl_easy_strerror(CURLcode error)
     return "Problem with the SSL CA cert (path? access rights?)";
 
   case CURLE_BAD_CONTENT_ENCODING:
-    return "Unrecognized HTTP Content-Encoding";
+    return "Unrecognized or bad HTTP Content or Transfer-Encoding";
 
   case CURLE_LDAP_INVALID_URL:
     return "Invalid LDAP URL";