mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
24 lines
453 B
Swift
Executable File
24 lines
453 B
Swift
Executable File
//
|
|
// UserAgent.swift
|
|
// RSWeb
|
|
//
|
|
// Created by Brent Simmons on 8/27/16.
|
|
// Copyright © 2016 Ranchero Software, LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
public struct UserAgent {
|
|
|
|
public static let fromInfoPlist: String = {
|
|
|
|
Bundle.main.object(forInfoDictionaryKey: "UserAgent") as! String
|
|
}()
|
|
|
|
public static let headers: [String: String] = {
|
|
|
|
let userAgent = fromInfoPlist
|
|
return [HTTPRequestHeader.userAgent: userAgent]
|
|
}()
|
|
}
|