(fix) make sure English is always used when generating Date headers using EAS (#3356)
parent
ea24e9586b
commit
15de70b938
|
@ -32,6 +32,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#import <Foundation/NSArray.h>
|
#import <Foundation/NSArray.h>
|
||||||
#import <Foundation/NSAutoreleasePool.h>
|
#import <Foundation/NSAutoreleasePool.h>
|
||||||
#import <Foundation/NSCalendarDate.h>
|
#import <Foundation/NSCalendarDate.h>
|
||||||
|
#import <Foundation/NSLocale.h>
|
||||||
#import <Foundation/NSProcessInfo.h>
|
#import <Foundation/NSProcessInfo.h>
|
||||||
#import <Foundation/NSTimeZone.h>
|
#import <Foundation/NSTimeZone.h>
|
||||||
#import <Foundation/NSURL.h>
|
#import <Foundation/NSURL.h>
|
||||||
|
@ -2947,7 +2948,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
{
|
{
|
||||||
NSString *value;
|
NSString *value;
|
||||||
|
|
||||||
value = [[NSDate date] descriptionWithCalendarFormat: @"%a, %d %b %Y %H:%M:%S %z" timeZone: [NSTimeZone timeZoneWithName: @"GMT"] locale: nil];
|
value = [[NSDate date] descriptionWithCalendarFormat: @"%a, %d %b %Y %H:%M:%S %z"
|
||||||
|
timeZone: [NSTimeZone timeZoneWithName: @"GMT"]
|
||||||
|
locale: [[[NSLocale alloc] initWithLocaleIdentifier: @"en_US"] autorelease]];
|
||||||
s = [NSString stringWithFormat: @"Date: %@\n%@", value, [theRequest contentAsString]];
|
s = [NSString stringWithFormat: @"Date: %@\n%@", value, [theRequest contentAsString]];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
1
NEWS
1
NEWS
|
@ -9,6 +9,7 @@ Enhancements
|
||||||
Bug fixes
|
Bug fixes
|
||||||
- numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849)
|
- numerous EAS fixes when connections are dropped before the EAS client receives the response (#3058, #2849)
|
||||||
- correctly handle the References header over EAS (#3365)
|
- correctly handle the References header over EAS (#3365)
|
||||||
|
- make sure English is always used when generating Date headers using EAS (#3356)
|
||||||
|
|
||||||
2.3.2 (2015-09-16)
|
2.3.2 (2015-09-16)
|
||||||
------------------
|
------------------
|
||||||
|
|
Loading…
Reference in New Issue