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.

I'm not an expert in C so if there any better way to do this please let me know.

Fixes #364