Skip to content

Commit

Permalink
[foundation] make authorization header available (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
pjechris authored Oct 7, 2022
1 parent f3d0d1c commit 4302be8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SimpleHTTPFoundation/HTTP/HTTPHeader.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ public struct HTTPHeader: Hashable, ExpressibleByStringLiteral {
extension HTTPHeader {
public static let accept: Self = "Accept"
public static let authentication: Self = "Authentication"
public static let authorization: Self = "Authorization"
public static let contentType: Self = "Content-Type"
public static var contentDisposition: Self = "Content-Disposition"
}

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

0 comments on commit 4302be8

Please sign in to comment.