(Broken) Better detection method for POST methods