Closed chdanielmueller closed 8 years ago
@chdanielmueller Is the code snippet below the same version of your PR?
var consumes = op.consumes || swagger.consumes;
if(consumes) {
method.headers.push({ name: 'Content-Type', value: consumes });
}
My code basically did the same. I changed the style now to match your input. I did some small changes to it to get the ' in the code:
var consumes = op.consumes || swagger.consumes;
if(consumes) {
method.headers.push({name: 'Content-Type', value: '\'' + consumes + '\'' });
}
@chdanielmueller thks! published on v1.4.0
closes #119