Skip to content

Commit 4a055e8

Browse files
committed
Added back content type header for login request
1 parent 2d4356c commit 4a055e8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

crates/bitwarden-uniffi/swift/iOS/App/ContentView.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,10 @@ struct ContentView: View {
160160
let (loginDataJson, _) = try await http.data(
161161
for: request(
162162
method: "POST", url: IDENTITY_URL + "connect/token",
163-
fn: {
163+
fn: { r in
164+
r.setValue(
165+
"application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
166+
164167
var comp = URLComponents()
165168
comp.queryItems = [
166169
URLQueryItem(name: "scope", value: "api offline_access"),

0 commit comments

Comments
 (0)