Skip to content

Commit

Permalink
fixing compile bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Ondrej Rafaj authored and Ondrej Rafaj committed Dec 15, 2016
1 parent a0fb5df commit 2b5f4de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/S3.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import Foundation
import Vapor
import S3SignerAWS
import HTTP
import MimeLib

/**
Available access control list values for "x-amz-acl" header as specified in AWS documentation
Expand Down Expand Up @@ -240,10 +241,10 @@ public class S3 {
internal extension S3 {

internal func mimeType(forFileAtUrl url: URL) -> String {
guard let mime: String = Mime.string(fileUrl: url) else {
guard let mime: String = Mime.string(forUrl: url) else {
return "application/octet-stream"
}
return mime.rawValue
return mime
}

internal func vaporHeaders(_ headers: [String: String]) -> [HeaderKey : String] {
Expand Down

0 comments on commit 2b5f4de

Please sign in to comment.