Fix SEGFAULT when receiving malformed POST.
Merge pull request #6 from vtsingaras/post-segfault-fix

Fix SEGFAULT when receiving malformed POST.