Skip to content
This repository was archived by the owner on Jan 17, 2023. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AFMsgPackSerialization/AFMsgPackRequestSerializer.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (NSURLRequest *)requestBySerializingRequest:(NSURLRequest *)request
return mutableRequest;
}

[mutableRequest setValue:@"application/x-msgpack" forHTTPHeaderField:@"Content-Type"];
[mutableRequest setValue:@"application/msgpack" forHTTPHeaderField:@"Content-Type"];
[mutableRequest setHTTPBody:[MsgPackSerialization dataWithMsgPackObject:parameters options:self.writingOptions error:error]];

return mutableRequest;
Expand Down
2 changes: 1 addition & 1 deletion AFMsgPackSerialization/AFMsgPackResponseSerializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

By default, `AFMsgPackSerializer` accepts the following MIME types:

- `application/x-msgpack`
- `application/msgpack`
*/
@interface AFMsgPackResponseSerializer : AFHTTPResponseSerializer

Expand Down
2 changes: 1 addition & 1 deletion AFMsgPackSerialization/AFMsgPackResponseSerializer.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ - (instancetype)init {
return nil;
}

self.acceptableContentTypes = [NSSet setWithObjects:@"application/x-msgpack", nil];
self.acceptableContentTypes = [NSSet setWithObjects:@"application/msgpack", nil];

return self;
}
Expand Down