Fix content and content_len not matching

It was passing the entire request content to the user's event handler, i used `strncpy` to copy only the `content_len `.

Tests are OK, i also tested the examples manually and everything is working OK.

Fixes #364