fix: check content type of POST target properly