go-resty / resty

Simple HTTP and REST client library for Go
MIT License
9.89k stars 696 forks source link

fix: Improve Digest WWW-Authenticate response header parsing compatibility #735

Closed bearki closed 8 months ago

bearki commented 10 months ago

Improve Digest WWW-Authenticate response header parsing compatibility

  1. Use commas to disassemble WWW-Authenticate instead of commas and spaces.
  2. Clear the spaces before and after each key-value pair.
  3. Added double quote clearing operation for stale and algorithm values.
codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Comparison is base (577fed8) 96.51% compared to head (d03ba41) 96.52%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## v2 #735 +/- ## ======================================= Coverage 96.51% 96.52% ======================================= Files 12 12 Lines 1636 1639 +3 ======================================= + Hits 1579 1582 +3 Misses 36 36 Partials 21 21 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.