Skip to content

Commit

Permalink
Add default header to delete
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif committed Jan 18, 2023
1 parent 0089d02 commit 3dd17f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/o/URL/o+url.swift
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ public extension o.url {
url: URL,
body: Data?,
headerFields: [String: String] = [
"Content-Type": "application/json; charset=utf-8"
"Content-Type": "application/json; charset=utf-8",
"Accept": "application/json"
]
) async throws -> DataResponse {
var request = request(
Expand Down

0 comments on commit 3dd17f3

Please sign in to comment.