Add and use MimeType.formURLEncoded.

This commit is contained in:
Brent Simmons
2024-05-08 22:18:45 -07:00
parent 48bfcedbf7
commit a3151181eb
5 changed files with 13 additions and 11 deletions

View File

@@ -24,7 +24,7 @@ extension URLRequest {
if credentialsType == .readerBasic {
setValue("application/x-www-form-urlencoded", forHTTPHeaderField: "Content-Type")
setValue(MimeType.formURLEncoded, forHTTPHeaderField: "Content-Type")
httpMethod = "POST"
var postData = URLComponents()
postData.queryItems = [