Subject: | Warning emitted on uploads with non-file params |
On processing an upload with enctype "multipart/form-data" which contains at least one non-file param this warning is seen:
Use of uninitialized value $headers in pattern match (m//) at /usr/local/share/p
erl5/CGI/Lite.pm line 1222.
This is because the non-file params do not necessarily have a Content-Type header but the code currently expects one. This does not adversely affect the operation but it is noisy and pointlessly so. The code should be fixed to address this and it should be added to the test suite.