Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

The body of multipart/form-data request is not compressed #6

Open
Anislav opened this issue Nov 26, 2015 · 1 comment
Open

The body of multipart/form-data request is not compressed #6

Anislav opened this issue Nov 26, 2015 · 1 comment

Comments

@Anislav
Copy link
Contributor

Anislav commented Nov 26, 2015

For example the request generated by the following code:

AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
manager.requestSerializer = [AFgzipRequestSerializer serializerWithSerializer:[AFHTTPRequestSerializer serializer]];

[manager POST:@"http://example.com"
       parameters:@{@"foo": @"bar"};
constructingBodyWithBlock:nil
          success:^(NSURLSessionDataTask *task, id responseObject) {
              NSLog(@"%@", responseObject);
          }
          failure:^(NSURLSessionDataTask *task, NSError *error) {
              NSLog(@"[Error] %@", error);
          }];

looks like:

    POST http://example.com/

    Content-Type: multipart/form-data; boundary=Boundary+42080181961C804E
    Content-Length: 111

    --Boundary+42080181961C804E
    Content-Disposition: form-data; name="foo"

    bar
    --Boundary+42080181961C804E--
@bluesky1300
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants