which is nothing to do with this question
But, the code doesn't match the comment, so one of them should be fixed.
You need, as sterretje points out, to actually look at what the client is requesting, and supply the appropriate response, which MIGHT be nothing, as the client is also likely to request favicon.ico, which you do not need to respond to.