fixed request parsing and responding
Merge pull request #2 from gmuecke/HEAD

fixed request parsing and responding