Skip to content

Commit 7b62e07

Browse files
author
Chris Wiechmann
committed
Bugfix. Call removeDuplicateContentTypeHeader
1 parent eb04fd3 commit 7b62e07

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.6.1] 2022-06-27
8+
### Fixed
9+
- Added call to removeDuplicateContentTypeHeader when return header to validator
10+
711
## [1.6.0] 2022-06-24
812
### Added
913
- Now query parameters are by default decoded before send to the validator (e.g. otr%C3%B3s -> otrós)

src/main/java/com/axway/apim/openapi/validator/OpenAPIValidator.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ public Map<String, Collection<String>> getHeaders() {
245245

246246
@Override
247247
public Collection<String> getHeaderValues(String name) {
248+
Utils.removeDuplicateContentTypeHeader(headers);
248249
return Utils.getHeaderValues(headers, name);
249250
}
250251
};

0 commit comments

Comments
 (0)