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

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

@Anislav

Description

@Anislav

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--

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions