Skip to content

Commit

Permalink
Remove unnecessary whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
yvbeek committed Aug 28, 2020
1 parent 86655a1 commit 8a95757
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Sources/Protocols/HTTP/Handlers/HTTPFileHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ open class HTTPFileHandler: HTTPRequestHandler {
let destination = try? fileManager.destinationOfSymbolicLink(atPath: url.path) {
return try responseForURL(URL(fileURLWithPath: destination), byteRange: byteRange)
}

// Allow directories
if resourceType == .typeDirectory {
guard let index = index else { return HTTPResponse(.forbidden) }
Expand Down
8 changes: 4 additions & 4 deletions Sources/Protocols/HTTP/Models/HTTPHeader+Common.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,22 @@ public extension Dictionary where Key == HTTPHeaderName, Value == String {
get { return self[.accessControlAllowOrigin] }
set { self[.accessControlAllowOrigin] = newValue }
}

var accessControlAllowHeaders: String? {
get { return self[.accessControlAllowHeaders] }
set { self[.accessControlAllowHeaders] = newValue }
}

var accessControlAllowMethods: String? {
get { return self[.accessControlAllowMethods] }
set { self[.accessControlAllowMethods] = newValue }
}

var accessControlMaxAge: String? {
get { return self[.accessControlMaxAge] }
set { self[.accessControlMaxAge] = newValue }
}

var age: String? {
get { return self[.age] }
set { self[.age] = newValue }
Expand Down

0 comments on commit 8a95757

Please sign in to comment.