valenok/mongoose — pull request #212 by pas2k (2013-08-11 20:58:56+00:00)
Title: Consume \n in mg_fgets when reading from membuf

Not consuming \n doesn't match fgets behavior and leads to infinite loop when password files are loaded from memory via mg_callbacks.open_file().