File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
Sources/MMMCommonCoreObjC Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 6
6
Pod ::Spec . new do |s |
7
7
8
8
s . name = "MMMCommonCore"
9
- s . version = "1.16.0 "
9
+ s . version = "1.16.1 "
10
10
s . summary = "Small bits and pieces reused in many pods from MMMTemple"
11
11
s . description = s . summary
12
12
s . homepage = "https://github.com/mediamonks/#{ s . name } "
Original file line number Diff line number Diff line change @@ -155,8 +155,11 @@ - (id)mmm_stripNSNull {
155
155
156
156
NSString *dataBinary = [[NSString alloc ] initWithData: request.HTTPBody encoding: NSUTF8StringEncoding];
157
157
158
+ // `--location-trusted` allows to keep "Authorization" header while being redirected (the behavior of NSURLSession).
159
+ // `-i` is to include response headers into output; adding it last so it's easy to disable headers when one wants
160
+ // to pipe the response out.
158
161
return [NSString
159
- stringWithFormat: @" curl -i - X %@ '%@ ' %@ --data-binary '%@ '" ,
162
+ stringWithFormat: @" curl -X %@ '%@ ' %@ --data-binary '%@ ' --location-trusted -i " ,
160
163
request.HTTPMethod,
161
164
request.URL,
162
165
headers,
You can’t perform that action at this time.
0 commit comments