Added .json => text/json mime type. In handle_cgi_request, closing write stream straight after data is sent to the CGI process.
Added .json => text/json mime type. In handle_cgi_request, closing write stream straight after data is sent to the CGI process.

Serge78rus/mongoose,jreidthompson/mongoose,aata/mongoose,ranxian/mongoose,kyj4795/mongoose,gaochunzy/mongoose,ruslansk/mongoose,palaniyappanBala/mongoose,aata/mongoose,slachiewicz/mongoose,pfalcon-mirrors/mongoose-mit,h2ooooooo/mongoose,hanminhee/mongoose,txdowty/mongoose,Elirudite/mongoose,mrwill84/mongoose,asd1355215911/mongoose,tst2005googlecode/mongoose,Lofik/mongoose,chyland/Meerkat,natebot13/mongoose,chinab/mongoose,beemoboy/mongoose,joswa/mongoose,commshare/civet-webserver,agenwebtoto/mongoose,DayBreakZhang/mongoose,pentix/mongoose,ruslansk/mongoose,Shaun-duplessis79/mongoose,elbuengad/mongoose,ismailfatih/mongoose,oldeye/mongoose,rgbkrk/mongoose,yeomann/mongoose,asd1355215911/mongoose,mmocean/mongoose,nrmmota/mongoose,frankschmidt2377/mongoose,slachiewicz/mongoose,elbuengad/mongoose,DayBreakZhang/mongoose,M-Razavi/mongoose,ranxian/mongoose,Lofik/mongoose,hugoprudente/mongoose,mulle-nat/mongoose,commshare/civet-webserver,kissofdarknes/mongoose,pfalcon-mirrors/mongoose-mit,emeric636/mongoose,Killerduty/mongoose,hugoprudente/mongoose,natebot13/mongoose,frankschmidt2377/mongoose,waxmiguelito/mongoose,elbuengad/mongoose,AndrewGomes/mongoose,tmaguire/mongoose,elbuengad/mongoose,nethibernate/mongoose,deadmenace/mongoose,mulle-nat/mongoose,Letractively/mongoose,michaelarmstrong/mongoose,630543057/mongoose,kissofdarknes/mongoose,Lofik/mongoose,joswa/mongoose,Killerduty/mongoose,psiniemi/mongoose,plan44/libmongoose,serinchu/mongoose,olupotd/mongoose,anragab/mongoose,mygittyhubby/free-mongoose,starfalling/mongoose,martindonofrio/mongoose,serinchu/mongoose,tencrocs/mongoose,natebot13/mongoose,rgbkrk/mongoose,evook/mongoose,UCSD-PL/csolve-webserver,danburkert/squeasel,olupotd/mongoose,kuksugen/mongoose,sc0ttj/mongoose,daokoder/Marten,gaochunzy/mongoose,Sinisteryu/mongoose,thamagates/mongoose,waxmiguelito/mongoose,frankschmidt2377/mongoose,emeric636/mongoose,agenwebtoto/mongoose,danburkert/squeasel,bl4ckic3/mongoose,commshare/civet-webserver,loveJesus/mongoose,RandallFlagg/mongoose,Lofik/mongoose,mulle-nat/mongoose,kp001/mongoose,bl4ckic3/mongoose,shaobo8910/mongoose,kuksugen/mongoose,brockn/squeasel,Killerduty/mongoose,rgfernandes/mongoose,funhatch/mongoose,codushlaine/mongoose,ismailfatih/mongoose,txdowty/mongoose,commshare/civet-webserver,GerHobbelt/civet-webserver,kp001/mongoose,emeric636/mongoose,natebot13/mongoose,Elirudite/mongoose,palaniyappanBala/mongoose,merona/mongoose,UCSD-PL/csolve-webserver,cloudtrends/mongoose,shaobo8910/mongoose,fb39ca4/mongoose,lecion/mongoose,kiss9815/mongoose,Rohit214/mongoose,yhk1038/mongoose,tstorch/mongoose,Archon-/mongoose,lingjiancong/mongoose,Elirudite/mongoose,michaelarmstrong/mongoose,GerHobbelt/civet-webserver,630543057/mongoose,cloudtrends/mongoose,frankschmidt2377/mongoose,stabAhead/mongoose,emeric636/mongoose,commshare/civet-webserver,Shaun-duplessis79/mongoose,recycled-air/mongoose,tmaguire/mongoose,slachiewicz/mongoose,hugoprudente/mongoose,yeomann/mongoose,Letractively/mongoose,mmocean/mongoose,gaochunzy/mongoose,sc0ttj/mongoose,gcla/mongoose,BurgyDev/mongoose,ismailfatih/mongoose,bharath1097/mongoose,joeinfo888/mongoose,oldeye/mongoose,DayBreakZhang/mongoose,mygittyhubby/free-mongoose,aata/mongoose,tedAir/mongoose,DayBreakZhang/mongoose,630543057/mongoose,elbuengad/mongoose,cuongphphanoi/mongoose,172205/mongoose,deadmenace/mongoose,starfalling/mongoose,shaobo8910/mongoose,ancruna/mongoose,mmocean/mongoose,aata/mongoose,gihyun/mongoose,michaelarmstrong/mongoose,jreidthompson/mongoose,bharath1097/mongoose,kp001/mongoose,fb39ca4/mongoose,Archon-/mongoose,Rohit214/mongoose,BackupGGCode/mongoose,codushlaine/mongoose,ismailfatih/mongoose,yhk1038/mongoose,agenwebtoto/mongoose,nrmmota/mongoose,ruslansk/mongoose,lecion/mongoose,Elirudite/mongoose,Letractively/mongoose,slachiewicz/mongoose,bl4ckic3/mongoose,RandallFlagg/mongoose,ranxian/mongoose,thamagates/mongoose,M-Razavi/mongoose,emeric636/mongoose,deadmenace/mongoose,sc0ttj/mongoose,BurgyDev/mongoose,gcla/mongoose,starfalling/mongoose,Rohit214/mongoose,M-Razavi/mongoose,kelemenbalazs/mongoose,funhatch/mongoose,funhatch/mongoose,cloudtrends/mongoose,chesterpolo/mongoose,DayBreakZhang/mongoose,Elirudite/mongoose,pentix/mongoose,asd1355215911/mongoose,ranxian/mongoose,Serge78rus/mongoose,Shaun-duplessis79/mongoose,tencrocs/mongoose,Sinisteryu/mongoose,adamh0807/mongoose,lingjiancong/mongoose,emeric636/mongoose,deadmenace/mongoose,ruslansk/mongoose,ufairiya/mongoose,tst2005googlecode/mongoose,deadmenace/mongoose,LikeLionKDH/mongoose,AndrewGomes/mongoose,hanminhee/mongoose,Rohit214/mongoose,LikeLionKDH/mongoose,palaniyappanBala/mongoose,Archon-/mongoose,attilla/mongoose,oldeye/mongoose,ufairiya/mongoose,gaochunzy/mongoose,jiltednut/mongoose,ndesktop/mongoose,psiniemi/mongoose,kissofdarknes/mongoose,ufairiya/mongoose,nrmmota/mongoose,hanminhee/mongoose,waxmiguelito/mongoose,jreidthompson/mongoose,yhk1038/mongoose,Rohit214/mongoose,GerHobbelt/civet-webserver,evook/mongoose,fb39ca4/mongoose,172205/mongoose,daokoder/Marten,starfalling/mongoose,172205/mongoose,Archon-/mongoose,chinab/mongoose,BackupGGCode/mongoose,LeeByeongHo/mongoose,pentix/mongoose,chyland/Meerkat,attilla/mongoose,natebot13/mongoose,sc0ttj/mongoose,palaniyappanBala/mongoose,tencrocs/mongoose,plan44/libmongoose,agenwebtoto/mongoose,aata/mongoose,adamh0807/mongoose,jiltednut/mongoose,jiltednut/mongoose,Lofik/mongoose,tedAir/mongoose,deadmenace/mongoose,waxmiguelito/mongoose,recycled-air/mongoose,jaz303/mongoose-mit,olupotd/mongoose,yeomann/mongoose,codushlaine/mongoose,cloudtrends/mongoose,daokoder/Marten,kyj4795/mongoose,ancruna/mongoose,joeinfo888/mongoose,tencrocs/mongoose,bl4ckic3/mongoose,beemoboy/mongoose,Lofik/mongoose,M-Razavi/mongoose,Serge78rus/mongoose,AndrewGomes/mongoose,tst2005googlecode/mongoose,GerHobbelt/civet-webserver,codushlaine/mongoose,evook/mongoose,rgfernandes/mongoose,lingjiancong/mongoose,mulle-nat/mongoose,DayBreakZhang/mongoose,jreidthompson/mongoose,martindonofrio/mongoose,kelemenbalazs/mongoose,fajsid/mongoose,asd1355215911/mongoose,tst2005googlecode/mongoose,starfalling/mongoose,deekr/mongoose,Letractively/mongoose,mygittyhubby/free-mongoose,danburkert/squeasel,BurgyDev/mongoose,kissofdarknes/mongoose,jiltednut/mongoose,yhk1038/mongoose,tstorch/mongoose,danburkert/squeasel,merona/mongoose,evook/mongoose,agenwebtoto/mongoose,natebot13/mongoose,fajsid/mongoose,nrmmota/mongoose,merona/mongoose,thamagates/mongoose,LeeByeongHo/mongoose,kp001/mongoose,thamagates/mongoose,gcla/mongoose,bharath1097/mongoose,kelemenbalazs/mongoose,ndesktop/mongoose,cloudtrends/mongoose,joeinfo888/mongoose,h2ooooooo/mongoose,dabomb1004/mongoose,adamh0807/mongoose,brockn/squeasel,h2ooooooo/mongoose,LeeByeongHo/mongoose,beemoboy/mongoose,hugoprudente/mongoose,ranxian/mongoose,pfalcon/mongoose-mit,merona/mongoose,plan44/libmongoose,lingjiancong/mongoose,anragab/mongoose,waxmiguelito/mongoose,martindonofrio/mongoose,UCSD-PL/csolve-webserver,ruslansk/mongoose,BurgyDev/mongoose,LikeLionKDH/mongoose,tmaguire/mongoose,martindonofrio/mongoose,haima-zju/mongoose,Serge78rus/mongoose,GerHobbelt/civet-webserver,dabomb1004/mongoose,rgfernandes/mongoose,gcla/mongoose,mmocean/mongoose,630543057/mongoose,olupotd/mongoose,Serge78rus/mongoose,agenwebtoto/mongoose,172205/mongoose,plan44/libmongoose,gaochunzy/mongoose,yeomann/mongoose,ancruna/mongoose,gihyun/mongoose,BackupGGCode/mongoose,tedAir/mongoose,Archon-/mongoose,psiniemi/mongoose,daokoder/Marten,plan44/libmongoose,anragab/mongoose,deekr/mongoose,rgfernandes/mongoose,tstorch/mongoose,LeeByeongHo/mongoose,cloudtrends/mongoose,kiss9815/mongoose,LikeLionKDH/mongoose,chesterpolo/mongoose,mygittyhubby/free-mongoose,mygittyhubby/free-mongoose,brockn/squeasel,michaelarmstrong/mongoose,pfalcon/mongoose-mit,fajsid/mongoose,evook/mongoose,serinchu/mongoose,nethibernate/mongoose,h2ooooooo/mongoose,Sinisteryu/mongoose,fajsid/mongoose,dabomb1004/mongoose,joeinfo888/mongoose,pfalcon/mongoose-mit,AndrewGomes/mongoose,ndesktop/mongoose,gihyun/mongoose,rgfernandes/mongoose,BackupGGCode/mongoose,frankschmidt2377/mongoose,chyland/Meerkat,deekr/mongoose,mah007/mongoose,RandallFlagg/mongoose,h2ooooooo/mongoose,brockn/squeasel,olupotd/mongoose,rgbkrk/mongoose,evook/mongoose,serinchu/mongoose,bharath1097/mongoose,shaobo8910/mongoose,nethibernate/mongoose,GerHobbelt/civet-webserver,recycled-air/mongoose,deekr/mongoose,BackupGGCode/mongoose,pentix/mongoose,adamh0807/mongoose,tencrocs/mongoose,ndesktop/mongoose,slachiewicz/mongoose,commshare/civet-webserver,jiltednut/mongoose,stabAhead/mongoose,agenwebtoto/mongoose,deekr/mongoose,bharath1097/mongoose,chyland/Meerkat,danburkert/squeasel,Rohit214/mongoose,mmocean/mongoose,recycled-air/mongoose,olupotd/mongoose,codushlaine/mongoose,palaniyappanBala/mongoose,codushlaine/mongoose,mulle-nat/mongoose,evook/mongoose,chinab/mongoose,ndesktop/mongoose,mrwill84/mongoose,tstorch/mongoose,loveJesus/mongoose,jiltednut/mongoose,chesterpolo/mongoose,palaniyappanBala/mongoose,mmocean/mongoose,mrwill84/mongoose,Elirudite/mongoose,Archon-/mongoose,mrwill84/mongoose,ufairiya/mongoose,daokoder/Marten,joswa/mongoose,txdowty/mongoose,shaobo8910/mongoose,deadmenace/mongoose,Letractively/mongoose,gaochunzy/mongoose,stabAhead/mongoose,thamagates/mongoose,172205/mongoose,chyland/Meerkat,ruslansk/mongoose,wachub/mongoose,cloudtrends/mongoose,beemoboy/mongoose,ndesktop/mongoose,Shaun-duplessis79/mongoose,sc0ttj/mongoose,DayBreakZhang/mongoose,thamagates/mongoose,tedAir/mongoose,630543057/mongoose,kiss9815/mongoose,haima-zju/mongoose,anragab/mongoose,kuksugen/mongoose,kissofdarknes/mongoose,dabomb1004/mongoose,AndrewGomes/mongoose,haima-zju/mongoose,gaochunzy/mongoose,daokoder/Marten,asd1355215911/mongoose,thamagates/mongoose,pfalcon-mirrors/mongoose-mit,merona/mongoose,beemoboy/mongoose,chinab/mongoose,RandallFlagg/mongoose,UCSD-PL/csolve-webserver,ismailfatih/mongoose,commshare/civet-webserver,attilla/mongoose,cuongphphanoi/mongoose,cuongphphanoi/mongoose,Sinisteryu/mongoose,Shaun-duplessis79/mongoose,mrwill84/mongoose,h2ooooooo/mongoose,chesterpolo/mongoose,Sinisteryu/mongoose,deekr/mongoose,M-Razavi/mongoose,mmocean/mongoose,tedAir/mongoose,deekr/mongoose,oldeye/mongoose,stabAhead/mongoose,haima-zju/mongoose,pfalcon/mongoose-mit,Lofik/mongoose,brockn/squeasel,tmaguire/mongoose,nrmmota/mongoose,serinchu/mongoose,lecion/mongoose,ancruna/mongoose,tmaguire/mongoose,joswa/mongoose,hugoprudente/mongoose,hanminhee/mongoose,Shaun-duplessis79/mongoose,wachub/mongoose,LikeLionKDH/mongoose,fajsid/mongoose,AndrewGomes/mongoose,michaelarmstrong/mongoose,loveJesus/mongoose,mygittyhubby/free-mongoose,palaniyappanBala/mongoose,bharath1097/mongoose,jreidthompson/mongoose,AndrewGomes/mongoose,fb39ca4/mongoose,dabomb1004/mongoose,kuksugen/mongoose,kp001/mongoose,cuongphphanoi/mongoose,LeeByeongHo/mongoose,gihyun/mongoose,zzuzjl/mongoose,wachub/mongoose,h2ooooooo/mongoose,wachub/mongoose,pfalcon-mirrors/mongoose-mit,stabAhead/mongoose,kyj4795/mongoose,rgbkrk/mongoose,kyj4795/mongoose,pentix/mongoose,kiss9815/mongoose,cuongphphanoi/mongoose,plan44/libmongoose,RandallFlagg/mongoose,ancruna/mongoose,jaz303/mongoose-mit,recycled-air/mongoose,ndesktop/mongoose,BackupGGCode/mongoose,kuksugen/mongoose,shaobo8910/mongoose,asd1355215911/mongoose,jaz303/mongoose-mit,psiniemi/mongoose,mah007/mongoose,tst2005googlecode/mongoose,gihyun/mongoose,yhk1038/mongoose,joeinfo888/mongoose,haima-zju/mongoose,mygittyhubby/free-mongoose,hugoprudente/mongoose,chyland/Meerkat,lecion/mongoose,bharath1097/mongoose,Shaun-duplessis79/mongoose,jaz303/mongoose-mit,wachub/mongoose,zzuzjl/mongoose,anragab/mongoose,tst2005googlecode/mongoose,waxmiguelito/mongoose,psiniemi/mongoose,hanminhee/mongoose,gcla/mongoose,txdowty/mongoose,nethibernate/mongoose,loveJesus/mongoose,adamh0807/mongoose,BackupGGCode/mongoose,Killerduty/mongoose,natebot13/mongoose,shaobo8910/mongoose,bl4ckic3/mongoose,lecion/mongoose,ancruna/mongoose,ruslansk/mongoose,jaz303/mongoose-mit,kiss9815/mongoose,tstorch/mongoose,Elirudite/mongoose,joswa/mongoose,ufairiya/mongoose,jiltednut/mongoose,waxmiguelito/mongoose,Killerduty/mongoose,mrwill84/mongoose,rgbkrk/mongoose,slachiewicz/mongoose,adamh0807/mongoose,kelemenbalazs/mongoose,kissofdarknes/mongoose,mrwill84/mongoose,Rohit214/mongoose,pfalcon/mongoose-mit,olupotd/mongoose,emeric636/mongoose,asd1355215911/mongoose,Archon-/mongoose,txdowty/mongoose,kissofdarknes/mongoose,jaz303/mongoose-mit,pfalcon-mirrors/mongoose-mit,tst2005googlecode/mongoose,ufairiya/mongoose,funhatch/mongoose,attilla/mongoose,zzuzjl/mongoose,zzuzjl/mongoose,kyj4795/mongoose,M-Razavi/mongoose,daokoder/Marten,mah007/mongoose,hugoprudente/mongoose,zzuzjl/mongoose,chinab/mongoose,ufairiya/mongoose,BurgyDev/mongoose,mah007/mongoose,UCSD-PL/csolve-webserver,ancruna/mongoose,M-Razavi/mongoose,danburkert/squeasel,lingjiancong/mongoose,nethibernate/mongoose,funhatch/mongoose,mah007/mongoose,yeomann/mongoose,martindonofrio/mongoose,kelemenbalazs/mongoose,brockn/squeasel,oldeye/mongoose,adamh0807/mongoose,chesterpolo/mongoose,codushlaine/mongoose,slachiewicz/mongoose,attilla/mongoose,fb39ca4/mongoose,loveJesus/mongoose