Skip to content

Commit

Permalink
conn: Document HTTP error codes
Browse files Browse the repository at this point in the history
Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
  • Loading branch information
ismaell committed Nov 17, 2020
1 parent 2fa16c4 commit e4cf506
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,9 +444,9 @@ conn_info(conn_t *conn)
if (conn->size <= 0) {
/* Sanity check */
switch (conn->http->status) {
case 200:
case 206:
case 416:
case 200: /* OK -> unsupported */
case 416: /* Range Not Satisfiable -> broken? */
case 206: /* Partial Content */
break;
default: /* unexpected */
return 0;
Expand Down

0 comments on commit e4cf506

Please sign in to comment.