1. 07 11月, 2019 2 次提交
  2. 16 9月, 2019 1 次提交
  3. 28 3月, 2019 2 次提交
  4. 26 3月, 2019 1 次提交
  5. 23 3月, 2019 1 次提交
  6. 04 2月, 2019 2 次提交
  7. 19 11月, 2018 1 次提交
    • H
      Fix typos · bfb49c72
      Hanope 提交于
      See gh-2019
      bfb49c72
  8. 17 11月, 2018 1 次提交
  9. 12 11月, 2018 1 次提交
  10. 15 10月, 2018 1 次提交
  11. 03 9月, 2018 1 次提交
  12. 15 8月, 2018 2 次提交
    • B
      Revert "Infer HTTP 404 from empty Optional/Publisher types" · f2506ca7
      Brian Clozel 提交于
      This reverts commit 7e917335.
      f2506ca7
    • B
      Infer HTTP 404 from empty Optional/Publisher types · 7e917335
      Brian Clozel 提交于
      This commit handles "empty" cases for `ResponseEntity` controller
      handler return types when wrapped with a `java.util.Optional` in Spring
      MVC or a single `Publisher` like `Mono`.
      
      Given the following example for Spring MVC:
      
      ```
      @GetMapping("/user")
      public Optional<ResponseEntity<User>> fetchUser() {
      	Optional<User> user = //...
      	return user.map(ResponseEntity::ok);
      }
      ```
      
      If the resulting `Optional` is empty, Spring MVC will infer a
      `ResponseEntity` with an empty body and a 404 HTTP response status.
      
      The same reasoning is applied to Spring WebFlux with Publisher types:
      
      ```
      @GetMapping("/user")
      public Mono<ResponseEntity<User>> fetchUser() {
      	Mono<User> user = //...
      	return user.map(ResponseEntity::ok);
      }
      ```
      
      This feature is only valid for `HttpEntity` return types and does not
      apply to `@ResponseBody` controller handlers.
      
      Issue: SPR-13281
      7e917335
  13. 12 8月, 2018 1 次提交
  14. 09 8月, 2018 2 次提交
  15. 24 7月, 2018 1 次提交
  16. 20 7月, 2018 1 次提交
  17. 18 7月, 2018 1 次提交
  18. 17 7月, 2018 3 次提交
  19. 11 7月, 2018 1 次提交
  20. 10 7月, 2018 1 次提交
    • B
      Refine Content-Range support for Resources · 818e4b07
      Brian Clozel 提交于
      This commit restricts the support of `"Content-Range"` when returning
      `Resource` instances from Controllers - now only "HTTP 200 OK" responses
      will be considered, as Controllers might want to handle content range
      themselves.
      
      Issue: SPR-16921
      818e4b07
  21. 28 6月, 2018 2 次提交
    • P
      Use tabs rather than spaces in tests · a89e716c
      Phillip Webb 提交于
      Update tests to ensure that tabs are used instead of spaces. Also
      consistently apply a new line at the end of each file.
      
      Issue: SPR-16968
      a89e716c
    • P
      Polish test code · 1c25cec4
      Phillip Webb 提交于
      Polish a few issue identified when adding checkstyle to the
      build. Although checkstyle is not enforcing rules on tests,
      these are a few minor changes that are still worth making.
      
      Issue: SPR-16968
      1c25cec4
  22. 15 6月, 2018 1 次提交
  23. 08 6月, 2018 2 次提交
  24. 30 5月, 2018 1 次提交
  25. 15 5月, 2018 1 次提交
  26. 14 5月, 2018 1 次提交
  27. 11 5月, 2018 1 次提交
    • R
      Remove individual detection of forwarded headers · 4da43de7
      Rossen Stoyanchev 提交于
      This commit removes all places where forwarded headers are checked
      implicitly, on an ad-hoc basis.
      
      ForwardedHeaderFilter is expected to be used instead providing
      centralized control over using or discarding such headers.
      
      Issue: SPR-16668
      4da43de7
  28. 05 5月, 2018 2 次提交
  29. 24 4月, 2018 1 次提交
    • B
      Disable HTTP Range support for InputStreamResource · e9a8a506
      Brian Clozel 提交于
      Prior to this commit, the `AbstractMessageConverterMethodProcessor`
      would fail to convert `InputStreamResource` to `ResourceRegion` as
      expected, since the content length cannot be read without consuming the
      stream. This is enforced by the `HttpRange` class.
      
      Now the method processor would still try to output HTTP range response
      headers to provide range support information. This step is using the
      resource content length and reads the input stream, leading to
      exceptions such as "IllegalStateException: InputStream has already been
      read".
      
      This commit improves the return type detection and excludes early
      `InputStreamResource` return types. With those types, HTTP range support
      is now completely disabled.
      
      Issue: SPR-16754
      e9a8a506
  30. 12 4月, 2018 1 次提交