Parcourir la source

Remove resolved TODO comment

Its following while-loop has no effect because *buf is already NUL or !isspace().
xtne6f il y a 7 ans
Parent
commit
acbee53f46
1 fichiers modifiés avec 0 ajouts et 10 suppressions
  1. 0 10
      src/civetweb.c

+ 0 - 10
src/civetweb.c

@@ -9596,16 +9596,6 @@ parse_http_response(char *buf, int len, struct mg_response_info *ri)
 	}
 	buf[response_length - 1] = '\0';
 
-
-	/* TODO: Define mg_response_info and implement parsing */
-	(void)buf;
-	(void)len;
-	(void)ri;
-
-	/* RFC says that all initial whitespaces should be ingored */
-	while ((*buf != '\0') && isspace(*(unsigned char *)buf)) {
-		buf++;
-	}
 	if ((*buf == 0) || (*buf == '\r') || (*buf == '\n')) {
 		return -1;
 	}