Merge pull request #110 from refuge/fix/fun-with-state-pattern-matching

fix send_body pattern matching. Thanks Benoit