Skip to content

AddJsonBody() ignores contentType argument #1645

Closed
@AJIOB

Description

@AJIOB

Expected Behavior

IRestRequest.AddJsonBody(obj, contentType) will send correct ContentType field value

Actual Behavior

IRestRequest.AddJsonBody(obj, contentType) force sends application/json ContentType field

Steps to Reproduce the Problem

  1. Enable Wireshark
  2. Send some object with custom contentType (for example, hello/world)
  3. See sent packet with default HTTP header: ContentType: application/json (should be ContentType: hello/world)

Specifications

  • Version: 106.13.0
  • Platform: Windows 10 x64 Pro
  • Subsystem: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions