Adding checks to make sure the HTTP method is consistent with its body.

From the post-review comments here:
  https://android-git.corp.google.com/g/51054

Change-Id: I67be25a6648a2df02a888a0ae8559c05614de20c
1 file changed