Skip to content

Commit

Permalink
add additional header field (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
mltbnz authored Jun 7, 2023
1 parent f6d0f06 commit 7bf5652
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion CriticalMapsKit/Sources/ApiClient/Requests/Request.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import Foundation
import Helpers

public struct Request {
let endpoint: Endpoint
Expand Down Expand Up @@ -61,7 +62,10 @@ public extension Request {

// MARK: Helper

public let defaultHeaders = ["Content-Type": "application/json"]
public let defaultHeaders = [
"Content-Type": "application/json",
"Client-Version": "iOS-\(Bundle.main.versionNumber).\(Bundle.main.buildNumber)"
]

enum APIRequestBuildError: Error {
case invalidURL
Expand Down

0 comments on commit 7bf5652

Please sign in to comment.