Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • drip-server-timing
  • compress-middleware
  • v2.11.0
  • v2.10.0
  • v2.9.2
  • v2.9.1
  • v2.9.0
  • v2.8.0
  • v2.7.0
  • v2.6.0
  • v2.5.6
  • v2.5.5
  • v2.5.4
  • v2.5.3
  • v2.5.2
  • v2.5.1
  • v2.5.0
  • v2.4.2
  • v2.4.1
  • v2.4.0
  • v2.3.0
  • v2.2.2
23 results

httpbin.go

Blame
    • Will McCutchen's avatar
      9e306405
      Improve and standardize error handling (#135) · 9e306405
      Will McCutchen authored
      Standardize on structured JSON error responses everywhere we can, with
      only one exception where the error is a warning for humans to read.
      
      Fixes #108 by adding a check to every request in the test suite to
      ensure that errors are never served with a Content-Type that might
      enable XSS or other vulnerabilities.
      
      While we're at it, continue refining the test suite and further adopting
      some of the testing helpers added in #131.
      Improve and standardize error handling (#135)
      Will McCutchen authored
      Standardize on structured JSON error responses everywhere we can, with
      only one exception where the error is a warning for humans to read.
      
      Fixes #108 by adding a check to every request in the test suite to
      ensure that errors are never served with a Content-Type that might
      enable XSS or other vulnerabilities.
      
      While we're at it, continue refining the test suite and further adopting
      some of the testing helpers added in #131.