             // Accept-Language HTTP Header; see http://tools.ietf.org/html/rfc7231#section-5.3.5
             let acceptLanguage: String = {
                 var components: [String] = []
-                for (index, languageCode) in enumerate(NSLocale.preferredLanguages() as [String]) {
+                for (index, languageCode) in enumerate(NSLocale.preferredLanguages() as! [String]) {
                     let q = 1.0 - (Double(index) * 0.1)
                     components.append("\(languageCode);q=\(q)")
                     if q <= 0.5 {

            }
        }
        
        components.append("\"\(URL.absoluteString!)\"")
        
        return join(" \\\n\t", components)
    }


extension NSURLRequest: URLStringConvertible {
    public var URLString: String {
        return URL!.URLString
    }
}

