File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -179,7 +179,7 @@ + (NSString*) sanitizePID:(NSString*) pid{
179
179
/*
180
180
/media/tracks/ID
181
181
*/
182
- if ([method isEqualToString: @" PATCH" ]){
182
+ if ([method isEqualToString: @" PATCH" ] || [method isEqualToString: @" POST " ] ){
183
183
NSData *data = [request body ];
184
184
NSString *str = [[NSString alloc ] initWithData: data encoding: NSUTF8StringEncoding];
185
185
@@ -208,12 +208,12 @@ + (NSString*) sanitizePID:(NSString*) pid{
208
208
}
209
209
}
210
210
211
- if ([method isEqualToString: @" GET" ] || [method isEqualToString: @" PATCH" ]) {
211
+ if ([method isEqualToString: @" GET" ] || [method isEqualToString: @" PATCH" ] || [method isEqualToString: @" POST " ] ) {
212
212
NSString *trackPath=[service pathForTrackWithID: tid];
213
213
trackLocation=[service locationForTrackPath: trackPath];
214
214
ret=[service jsonTrackWithID: tid];
215
215
}else {
216
- return [[RESTResponse alloc ] initWithJSON: @" Only GET and PATCH methods are allowed to this resource" andStatus: 400 ];
216
+ return [[RESTResponse alloc ] initWithJSON: @" Only GET and PATCH(POST) methods are allowed to this resource" andStatus: 400 ];
217
217
}
218
218
}else {
219
219
/*
You can’t perform that action at this time.
0 commit comments