BeataKr / axios-har-tracker

This library was designed for gathering HAR files from requests sent using axios
https://github.com/BeataKr/axios-har-tracker
10 stars 10 forks source link

Fix cookie handling #17

Closed schw4rzlicht closed 1 month ago

schw4rzlicht commented 7 months ago

Hey there!

I found an issue with cookie handling so I attempted to fix it. My proposal came out larger than anticipated so let me explain.

Issue description

The resulting .har files included cookies like this:

"cookies": [
  {
    "name": "[\"test",
    "value": "2\"]"
  }
],

Also response objects stored cookies in the respective cookies property that were sent in the Cookie request header instead of the Set-Cookie response headers.

Changes

Dependencies

Tests

Implementation

Open questions

Thanks for your work on this library!

BeataKr commented 1 month ago

Thank you for your contribution. Changes published with v7.0.0