forked from loafle/openapi-generator-original
* Fixed #3774 Refactored code to handle optional header parameters. * Changed null check with pattern matching
* Fixed #3774 Refactored code to handle optional header parameters. * Changed null check with pattern matching