http_client: check current state when receiving FIN

This commit is contained in:
goldsimon
2018-03-06 21:51:13 +01:00
parent 91a2d9e237
commit b6d9bb6b2a
2 changed files with 16 additions and 2 deletions

View File

@@ -86,7 +86,9 @@ typedef enum ehttpc_result {
/** Local memory error */
HTTPC_RESULT_ERR_MEM = 7,
/** Local abort */
HTTPC_RESULT_LOCAL_ABORT = 8
HTTPC_RESULT_LOCAL_ABORT = 8,
/** Content length mismatch */
HTTPC_RESULT_ERR_CONTENT_LEN = 9
} httpc_result_t;
typedef struct _httpc_state httpc_state_t;