Skip to content

Commit 4302be8

Browse files
authored
[foundation] make authorization header available (#16)
1 parent f3d0d1c commit 4302be8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SimpleHTTPFoundation/HTTP/HTTPHeader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ public struct HTTPHeader: Hashable, ExpressibleByStringLiteral {
1515
extension HTTPHeader {
1616
public static let accept: Self = "Accept"
1717
public static let authentication: Self = "Authentication"
18+
public static let authorization: Self = "Authorization"
1819
public static let contentType: Self = "Content-Type"
1920
public static var contentDisposition: Self = "Content-Disposition"
2021
}
2122

2223
@available(*, unavailable, message: "This is a reserved header. See https://developer.apple.com/documentation/foundation/nsurlrequest#1776617")
2324
extension HTTPHeader {
24-
public static let authorization: Self = "Authorization"
2525
public static let connection: Self = "Connection"
2626
public static let contentLength: Self = "Content-Length"
2727
public static let host: Self = "Host"

0 commit comments

Comments
 (0)