channel_curl: extend http_response_code
diff mbox series

Message ID 1552087888-6867-1-git-send-email-pjtexier@koncepto.io
State Accepted
Headers show
Series
  • channel_curl: extend http_response_code
Related show

Commit Message

'Pierre-Jean Texier' via swupdate March 8, 2019, 11:31 p.m. UTC
FTP Server send return code '226' to close
data connection after a successfull action.

Signed-off-by: Pierre-Jean Texier <pjtexier@koncepto.io>
---
 corelib/channel_curl.c | 1 +
 1 file changed, 1 insertion(+)

Patch
diff mbox series

diff --git a/corelib/channel_curl.c b/corelib/channel_curl.c
index fea6c05..9062a73 100644
--- a/corelib/channel_curl.c
+++ b/corelib/channel_curl.c
@@ -273,6 +273,7 @@  channel_op_res_t channel_map_http_code(channel_t *this, long *http_response_code
 		return CHANNEL_EAGAIN;
 	case 200:
 	case 206:
+	case 226:
 		return CHANNEL_OK;
 	case 302:
 		curlrc = curl_easy_getinfo(channel_curl->handle, CURLINFO_REDIRECT_URL,