--- a/src/httpfs.cxx
+++ b/src/httpfs.cxx
@@ -225,6 +225,9 @@
             eof = true;
 	}
         trimstring(line, " \t\n\r");
+        if (line[line.size()-1] != ',') {
+            line += ",";
+        }
         if (enableL16 && line[0] == '@') {
             line = regsub1("@ENABLEL16@", line, "");
         } else {