Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class CommunicationAccessKeyCredentialPolicy extends BaseRequestPolicy {
const verb = webResource.method.toUpperCase();
const utcNow = new Date().toUTCString();
const contentHash = await shaHash(webResource.body || "");
const dateHeader = isNode ? "date" : "x-ms-date";
const dateHeader = "x-ms-date";
const signedHeaders = `${dateHeader};host;x-ms-content-sha256`;

const url = URLBuilder.parse(webResource.url);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { TestCommunicationIdentityClient } from "./utils/testCommunicationIdenti
import { exchangeTeamsTokenHttpClient, getTokenHttpClient } from "./utils/mockHttpClients";

describe("CommunicationIdentityClient [Mocked]", () => {
const dateHeader = isNode ? "date" : "x-ms-date";
const dateHeader = "x-ms-date";
const user: CommunicationUserIdentifier = { communicationUserId: "ACS_ID" };

afterEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ describe("PhoneNumbersClient - headers", function() {
});

it("sets date header", function() {
const dateHeader = isNode ? "date" : "x-ms-date";
const dateHeader = "x-ms-date";
assert.typeOf(request.headers.get(dateHeader), "string");
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const TEST_NUMBER = "+14255550123";
describe("[mocked] SmsClient", async () => {
const baseUri = "https://contoso.api.fake:443";
const connectionString = `endpoint=${baseUri};accesskey=banana`;
const dateHeader = isNode ? "date" : "x-ms-date";
const dateHeader = "x-ms-date";
let sendRequestSpy: sinon.SinonSpy;
const mockHttpClient: HttpClient = new MockHttpClient(TEST_NUMBER);

Expand Down