bugfix: incorrect http method
bugfix in `exitprematurely()'
fix segfault
request and buf are treated as binary strings
fix all warnings
unused static function and variables
fixed ip addresses comparison