     {
         if var request = super.request(bySerializingRequest: request, withParameters: parameters, error: error)
         {
-            request = self.requestWithAuthorizationHeader(fromRequest: request)
+            request = self.requestConfiguringHeaders(fromRequest: request)
             
             return request
         }

        
        super.init()

        self.setup(apiVersion: apiVersion)
    }
    
    /**

        
        return request
    }
    
    private func requestModifyingUserAgentHeader(fromRequest request: URLRequest) -> URLRequest
    {
        guard let frameworkVersion = Bundle(for: type(of: self)).infoDictionary?["CFBundleShortVersionString"] as? String else
        {
            assertionFailure("Unable to get the framework version")
            
            return request
        }
        
        var request = request
        
        let frameworkString = "VimeoNetworking/\(frameworkVersion)"
        
        guard let existingUserAgent = request.value(forHTTPHeaderField: Constants.UserAgentKey) else
        {
            assertionFailure("No existing user agent")

            request.setValue(frameworkString, forHTTPHeaderField: Constants.UserAgentKey)

            return request
        }
        
        let modifiedUserAgent = existingUserAgent + " " + frameworkString
        
        request.setValue(modifiedUserAgent, forHTTPHeaderField: Constants.UserAgentKey)
        
        return request
    }
}
