Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2011-05-11 10:38:19 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
63b73bcb97fba2f91b45fd7b5b9529a45a99bbe6
63b73bcb
1 parent
af3e4db0
Fix leak
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
Classes/ASIHTTPRequest.m
Classes/ASIHTTPRequest.m
View file @
63b73bc
...
...
@@ -24,7 +24,7 @@
#import "ASIDataCompressor.h"
// Automatically set on build
NSString
*
ASIHTTPRequestVersion
=
@"v1.8-
77 2011-05-08
"
;
NSString
*
ASIHTTPRequestVersion
=
@"v1.8-
81 2011-05-11
"
;
static
NSString
*
defaultUserAgent
=
nil
;
...
...
@@ -4192,7 +4192,7 @@ static NSOperationQueue *sharedQueue = nil;
}
NSData
*
latin1Data
=
[
appName
dataUsingEncoding
:
NSUTF8StringEncoding
];
appName
=
[[
NSString
alloc
]
initWithData
:
latin1Data
encoding
:
NSISOLatin1StringEncoding
];
appName
=
[[
[
NSString
alloc
]
initWithData
:
latin1Data
encoding
:
NSISOLatin1StringEncoding
]
autorelease
];
// If we couldn't find one, we'll give up (and ASIHTTPRequest will use the standard CFNetwork user agent)
if
(
!
appName
)
{
...
...
Please
register
or
login
to post a comment