Skip to content

v1.6.2

Latest

Choose a tag to compare

@steinfletcher steinfletcher released this 19 Oct 13:04
8c3a106

Bug fix release. No changes to the exported API.

Bug fixes

  • HeaderPresent, QueryPresent and their NotPresent counterparts on mock requests now check for the key itself instead of its first value, as documented. A bare ?flag, ?flag= or an empty-valued header counts as present, so HeaderNotPresent and QueryNotPresent now reject requests that carry such keys. (#178, fixes #177. Thanks @bensynapse.)
  • Response.HeaderPresent and Response.HeaderNotPresent apply the same rule to response headers: an empty-valued header counts as present. (#179)

Internal

  • Error checks that can never fire and dead code removed from the hash helper, assertion messages, sequence diagram rendering, request and response dumps and difflib. No behaviour change. (#176)
  • Test coverage raised to 99.9% and published to Coveralls, with a badge in the README. (#175, #176)

Docs

  • README rewritten as a complete guide to the library. (#173)
  • New example showing how to test handler timeouts with http.TimeoutHandler. (#170)
  • The retired Go Report Card badge is removed. (#174)

Examples

  • Dependency bumps in examples/: golang.org/x/net 0.55.0, golang.org/x/crypto 0.52.0, github.com/gorilla/websocket 1.5.3. (#168, #169, #172)