cgi/h: fix typo
Merge branch 'fix-typo' into devel
cgi/g: using the while(fetch) idiom