Skip to content

[SR-6405] Equality on URLRequest is case-sensitive for httpMethod on Linux #3787

@mbrandonw

Description

@mbrandonw
Previous ID SR-6405
Radar None
Original Reporter @mbrandonw
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug
Assignee ianpartridge (JIRA)
Priority Medium

md5: 960e0b5e49770869e19e82b5c473ab1a

Issue Description:

In Darwin we have the following:

var x = URLRequest(url: URL.init(string: "/hello")!)
x.httpMethod = "get"
var y = URLRequest(url: URL.init(string: "/hello")!)
y.httpMethod = "GET"
x == y // true

But on Linux we have

var x = URLRequest(url: URL.init(string: "/hello")!)
x.httpMethod = "get"
var y = URLRequest(url: URL.init(string: "/hello")!)
y.httpMethod = "GET"
x == y // false

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions