From: Paul Fox Date: Wed, 7 May 2014 23:36:56 +0000 (-0400) Subject: make scan_content() work correctly with content containing NULs X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/2878a6afb068ee13945aec07cc73a2202e97a86a?hp=2878a6afb068ee13945aec07cc73a2202e97a86a make scan_content() work correctly with content containing NULs switched from fgets to getline for unambiguous reads in the face of NUL bytes. added a checkfornuls flag, and use it to cause the correct encoding when content-types of application or text contain NULs. ---