forked from loafle/openapi-generator-original
correct usage of strpos
This commit is contained in:
@@ -84,7 +84,7 @@ class {{classname}} {
|
||||
}
|
||||
|
||||
// for HTTP post (form)
|
||||
if (strpos($headerParams['Content-Type'], "application/x-www-form-urlencoded") > -1) {
|
||||
if (strpos($headerParams['Content-Type'], "application/x-www-form-urlencoded") !== FALSE) {
|
||||
$httpBody = http_build_query($formParams);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user