Skip to content

Commit 06e20e5

Browse files
committed
Assign form data default content type.
1 parent 86d52d1 commit 06e20e5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

STNetTaskQueue/STHTTPNetTaskQueueHandler.m

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ + (void)load
105105
@(STHTTPNetTaskPost): @"POST",
106106
@(STHTTPNetTaskPut): @"PUT" };
107107
STHTTPNetTaskContentTypeMap = @{ @(STHTTPNetTaskRequestJSON): @"application/json; charset=utf-8",
108-
@(STHTTPNetTaskRequestKeyValueString): @"application/x-www-form-urlencoded" };
108+
@(STHTTPNetTaskRequestKeyValueString): @"application/x-www-form-urlencoded",
109+
@(STHTTPNetTaskRequestFormData): @"multipart/form-data" };
109110
STHTTPNetTaskFormDataBoundary = [NSString stringWithFormat:@"ST-Boundary-%@", [[NSUUID UUID] UUIDString]];
110111
STHTTPNetTaskToSessionTask = [[NSMapTable alloc] initWithKeyOptions:NSPointerFunctionsWeakMemory valueOptions:NSPointerFunctionsWeakMemory capacity:50];
111112
}

0 commit comments

Comments
 (0)