Skip to content

Commit

Permalink
Merge pull request #1808 from ably/fix/1807-patch-vs-PATCH
Browse files Browse the repository at this point in the history
[SDK-3869] Uppercase PATCH reinforcing
  • Loading branch information
maratal authored Sep 25, 2023
2 parents d8c8a75 + 463e669 commit 33e0aa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Test/Tests/RestClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1822,7 +1822,7 @@ class RestClientTests: XCTestCase {
let url = try XCTUnwrap(request.url, "No request url found")
let acceptHeaderValue = try XCTUnwrap(request.allHTTPHeaderFields?["Accept"], "Accept HTTP Header is missing")

XCTAssertEqual(request.httpMethod, "patch")
XCTAssertEqual(request.httpMethod!.uppercased(), "PATCH")
XCTAssertEqual(url.absoluteString, "https://rest.ably.io:443/feature?foo=1")
XCTAssertEqual(acceptHeaderValue, "application/x-msgpack,application/json")
}
Expand Down

0 comments on commit 33e0aa0

Please sign in to comment.