diff --git a/ImgFlo/Client.swift b/ImgFlo/Client.swift index 4c38da5..ecc750c 100644 --- a/ImgFlo/Client.swift +++ b/ImgFlo/Client.swift @@ -49,9 +49,9 @@ public struct Client { let graphNameWithFormat: String if let format = derivedFormat { - graphNameWithFormat = graph.rawValue + "." + format.lowercaseString + graphNameWithFormat = graph.pathComponent + "." + format.lowercaseString } else { - graphNameWithFormat = graph.rawValue + graphNameWithFormat = graph.pathComponent } guard let token = "\(graphNameWithFormat)?\(query)\(secret)".MD5 else { diff --git a/ImgFlo/Graph.swift b/ImgFlo/Graph.swift index 160bbcb..a0c81be 100644 --- a/ImgFlo/Graph.swift +++ b/ImgFlo/Graph.swift @@ -19,7 +19,7 @@ public enum Graph { case MotionBlur(width: Int?, height: Int?, length: Double, angle: Double, brightness: Double, contrast: Double, strength: DecimalFraction) case Passthrough(width: Int?, height: Int?) - var rawValue: String { + var pathComponent: String { switch self { case .Canvas: return "canvas" case .Crop: return "crop"