function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
krittukrittu 

Duplicate Date Header

Hi All,

 

When accessing rest API "https://login.salesforce.com/services/oauth2/token" with all the required parameters the response header is having 2 date parameters, which is making my middleware to throw an error. 

Is there anything salesforce can do to rectify this problem. I am trying to make my middleware to ignore the duplicate date header but with no success.

 

Any help guys!!!

 

regards

Krishna

kirkevonphillykirkevonphilly

Hi krittu, did you find a solution for this?  I too am getting the error.

{
  "fault":  {
    "faultstring": "Duplicate Header "Date"",
    "detail":  {
      "errorcode": "protocol.http.DuplicateHeader"
    }
  }
}

 

Swen Helge HuberSwen Helge Huber
Hi,

I am seeing the same issue.
The workaround for me is to request our team to reconfigure the API Platform we are using.
However the OAuth endpoint is not compliant with HTTP spec - the Date header should not be duplicated

Swen