Skip to content

Commit

Permalink
Fix issue oatpp#65
Browse files Browse the repository at this point in the history
  • Loading branch information
asiirtol committed Nov 22, 2022
1 parent ed5251c commit 5ed0e0e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oatpp-swagger/Generator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ void Generator::generatePathItemData(const std::shared_ptr<Endpoint>& endpoint,
for (const auto &header : info->headers.getOrder()) {
// We don't want the Authorization header listed as Parameter. This should be done in ENDPOINT_INFO() { info->addSecurityRequirement( /* SecurityScheme-Name */ ); }
if (header != oatpp::web::protocol::http::Header::AUTHORIZATION) {
filteredHeaders[header] = info->headers[header];
filteredHeaders.add(header, info->headers[header].type) = info->headers[header];
}
}
}
Expand Down

0 comments on commit 5ed0e0e

Please sign in to comment.