Tek.ke
Tek.ke

Reputation: 115

How to Set Transfer encoding in Alamofire

I'm using Alamofire 5.0.0 in my iOS project, Now the problem is the default Transfer-Encoding of Alamofire is 'Chunked' which is not supported by my server, Is there any way to set Transfer-Encoding to another value for example identity or gzip?

I'd be glad any help me.

Upvotes: 1

Views: 683

Answers (1)

steveSarsawa
steveSarsawa

Reputation: 1679

Use URLEncoding.httpBody instead of JSON.gzipped

Upvotes: 1

Related Questions