Skip to content

Commit

Permalink
deleted .DS_Store file and removed not needed comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Maria-Basia committed Apr 16, 2024
1 parent 32e21a9 commit 1f17a2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MobileAcebook/Services/AuthenticationService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class AuthenticationService: AuthenticationServiceProtocol {
urlRequest.setValue("application/json", forHTTPHeaderField: "Content-Type")

let body = user
urlRequest.httpBody = try? JSONEncoder().encode(user) //JSONSerialization.data(withJSONObject: body, options: .fragmentsAllowed)
urlRequest.httpBody = try? JSONEncoder().encode(user)
let task = URLSession.shared.dataTask(with : urlRequest) {data, response, error in
guard let data = data else {return}
do {
Expand Down

0 comments on commit 1f17a2f

Please sign in to comment.