Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Duplicated header values when an endpoint can be called with differen…
…t headers. Fixes #1801.
- Loading branch information
1 parent
aaf92ab
commit 78df2f5
Showing
3 changed files
with
84 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
...c-openapi-webmvc-core/src/test/java/test/org/springdoc/api/v30/app47/BasicController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package test.org.springdoc.api.v30.app47; | ||
|
||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping(path = "/") | ||
public class BasicController { | ||
|
||
@GetMapping(headers = {"foo=bar"}) | ||
public String get1() { | ||
return null; | ||
} | ||
|
||
@GetMapping(headers = {"fi=ri"}) | ||
public String get2() { | ||
return null; | ||
} | ||
|
||
@GetMapping( | ||
headers = {"User-Agent=" + "MyUserAgent"}) | ||
public String get3() { | ||
return null; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters