Browse Source
According to: https://docs.spring.io/spring/docs/current/javadoc-api/org/springframework/web/bind/annotation/RequestMapping.html#headers-- the `headers` field can take several formats: 1. Require the header with a concrete value: `"My-Header=myValue"` 2. Require the header with any value: `"My-Header"` 3. Require the header is absent: `"!My-Header"` 4. Require the header with a negated value : `"My-Header!=myValue"` This fixes `parseHeaders` for cases 2-4 (which previously threw a `StringIndexOutOfBoundsException`). Fixes gh-1778.pull/6/head
Matt Bray
7 years ago
2 changed files with 20 additions and 1 deletions
Loading…
Reference in new issue