reqable / reqable-app

Reqable issue track repo
https://reqable.com
3.2k stars 109 forks source link

Bug in curl copy with non-standard content-type header #626

Closed xshadow0x closed 4 months ago

xshadow0x commented 5 months ago

Describe the bug

I found a bug where, when sniffing a request that contains a non-standard content-type header (e.g., application/vnd.api+json or others), copying it as a curl command results in the program not adding any content-type header at all, instead of adding the one that was originally in the request. This can cause the server to refuse to accept the request with an unsupported content-type.

To Reproduce Steps to reproduce the behavior:

  1. sniff request with non-standard content-type
  2. Click copy as curl

Information

MegatronKing commented 4 months ago

@xshadow0x Thanks, I can reproduce this bug. I will fix this in the next version.

MegatronKing commented 4 months ago

Fixed on v2.15.0