From a2a2feef58d647c9f21eb566cc1b55340f9dc2df Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Tue, 24 Sep 2019 22:24:57 -0400 Subject: [PATCH] Send correct Accept header for API requests --- Pachyderm/Client.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Pachyderm/Client.swift b/Pachyderm/Client.swift index 8717680c3a..0d72b7eee6 100644 --- a/Pachyderm/Client.swift +++ b/Pachyderm/Client.swift @@ -88,6 +88,7 @@ public class Client { if let accessToken = accessToken { urlRequest.setValue("Bearer \(accessToken)", forHTTPHeaderField: "Authorization") } + urlRequest.setValue("application/json", forHTTPHeaderField: "Accept") return urlRequest }