<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -372,12 +372,16 @@
 	
 	// Test setting a custom cookie works
 	NSDictionary *cookieProperties = [[[NSMutableDictionary alloc] init] autorelease];
-	[cookieProperties setValue:@&quot;Test Value&quot; forKey:NSHTTPCookieValue];
+	
+	// We'll add a line break to our cookie value to test it gets correctly encoded
+	[cookieProperties setValue:[@&quot;Test\r\nValue&quot; encodedCookieValue] forKey:NSHTTPCookieValue];
 	[cookieProperties setValue:@&quot;ASIHTTPRequestTestCookie&quot; forKey:NSHTTPCookieName];
 	[cookieProperties setValue:@&quot;allseeing-i.com&quot; forKey:NSHTTPCookieDomain];
 	[cookieProperties setValue:[NSDate dateWithTimeIntervalSinceNow:60*60*4] forKey:NSHTTPCookieExpires];
 	[cookieProperties setValue:@&quot;/ASIHTTPRequest/tests&quot; forKey:NSHTTPCookiePath];
 	cookie = [[[NSHTTPCookie alloc] initWithProperties:cookieProperties] autorelease];
+	
+	GHAssertNotNil(cookie,@&quot;Failed to create a cookie - cookie value was not correctly encoded?&quot;);
 
 	url = [[[NSURL alloc] initWithString:@&quot;http://allseeing-i.com/ASIHTTPRequest/tests/read_cookie&quot;] autorelease];
 	request = [[[ASIHTTPRequest alloc] initWithURL:url] autorelease];
@@ -385,7 +389,7 @@
 	[request setRequestCookies:[NSMutableArray arrayWithObject:cookie]];
 	[request start];
 	html = [request responseString];
-	success = [html isEqualToString:@&quot;I have 'Test Value' as the value of 'ASIHTTPRequestTestCookie'&quot;];
+	success = [html isEqualToString:@&quot;I have 'Test\r\nValue' as the value of 'ASIHTTPRequestTestCookie'&quot;];
 	GHAssertTrue(success,@&quot;Custom cookie not presented to the server with cookie persistance OFF&quot;);
 	
 </diff>
      <filename>Classes/Tests/ASIHTTPRequestTests.m</filename>
    </modified>
    <modified>
      <diff>@@ -11,7 +11,6 @@
 		B55B5D200F76568E0064029C /* ASIFormDataRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D120F76568E0064029C /* ASIFormDataRequest.m */; };
 		B55B5D210F76568E0064029C /* ASIHTTPRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D140F76568E0064029C /* ASIHTTPRequest.m */; };
 		B55B5D220F76568E0064029C /* ASINetworkQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D160F76568E0064029C /* ASINetworkQueue.m */; };
-		B55B5D230F76568E0064029C /* NSHTTPCookieAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D180F76568E0064029C /* NSHTTPCookieAdditions.m */; };
 		B55B5E700F7656A40064029C /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5E6E0F7656A40064029C /* main.m */; };
 		B55B5E7F0F76573B0064029C /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = B55B5E730F7656DA0064029C /* MainMenu.xib */; };
 		B55B5EB80F7658200064029C /* libz.1.2.3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = B55B5EB70F7658200064029C /* libz.1.2.3.dylib */; };
@@ -20,10 +19,11 @@
 		B55B60090F76597C0064029C /* ASIHTTPRequestTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D1D0F76568E0064029C /* ASIHTTPRequestTests.m */; };
 		B55B600A0F7659800064029C /* ASINetworkQueueTests.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D1F0F76568E0064029C /* ASINetworkQueueTests.m */; };
 		B55B600C0F7659880064029C /* ASINetworkQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D160F76568E0064029C /* ASINetworkQueue.m */; };
-		B55B600E0F76598D0064029C /* NSHTTPCookieAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D180F76568E0064029C /* NSHTTPCookieAdditions.m */; };
 		B55B600F0F7659900064029C /* ASIHTTPRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D140F76568E0064029C /* ASIHTTPRequest.m */; };
 		B55B60100F7659960064029C /* ASIFormDataRequest.m in Sources */ = {isa = PBXBuildFile; fileRef = B55B5D120F76568E0064029C /* ASIFormDataRequest.m */; };
 		B55B60140F7659A30064029C /* libz.1.2.3.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = B55B5EB70F7658200064029C /* libz.1.2.3.dylib */; };
+		B564D0520FEE677F00A2098A /* ASINSStringAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = B564D0500FEE677F00A2098A /* ASINSStringAdditions.m */; };
+		B564D0530FEE678C00A2098A /* ASINSStringAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = B564D0500FEE677F00A2098A /* ASINSStringAdditions.m */; };
 		B5B513680FBEE435002C74D0 /* GHUnit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = B5B513670FBEE435002C74D0 /* GHUnit.framework */; };
 		B5B513830FBEE490002C74D0 /* GHUnit.framework in CopyFiles */ = {isa = PBXBuildFile; fileRef = B5B513670FBEE435002C74D0 /* GHUnit.framework */; };
 		B5B513860FBEE515002C74D0 /* GHUnitTestMain.m in Sources */ = {isa = PBXBuildFile; fileRef = B5B513850FBEE515002C74D0 /* GHUnitTestMain.m */; };
@@ -54,8 +54,6 @@
 		B55B5D140F76568E0064029C /* ASIHTTPRequest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASIHTTPRequest.m; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B55B5D150F76568E0064029C /* ASINetworkQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASINetworkQueue.h; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B55B5D160F76568E0064029C /* ASINetworkQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASINetworkQueue.m; sourceTree = &quot;&lt;group&gt;&quot;; };
-		B55B5D170F76568E0064029C /* NSHTTPCookieAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = NSHTTPCookieAdditions.h; sourceTree = &quot;&lt;group&gt;&quot;; };
-		B55B5D180F76568E0064029C /* NSHTTPCookieAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = NSHTTPCookieAdditions.m; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B55B5D1A0F76568E0064029C /* ASIFormDataRequestTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASIFormDataRequestTests.h; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B55B5D1B0F76568E0064029C /* ASIFormDataRequestTests.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASIFormDataRequestTests.m; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B55B5D1C0F76568E0064029C /* ASIHTTPRequestTests.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASIHTTPRequestTests.h; sourceTree = &quot;&lt;group&gt;&quot;; };
@@ -71,6 +69,8 @@
 		B55B5ED00F76588D0064029C /* AppDelegate.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = AppDelegate.h; path = &quot;Mac Sample/AppDelegate.h&quot;; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B55B5ED10F76588D0064029C /* AppDelegate.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = AppDelegate.m; path = &quot;Mac Sample/AppDelegate.m&quot;; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B55B5EDF0F7658C70064029C /* Unit Tests (GHUnit).app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = &quot;Unit Tests (GHUnit).app&quot;; sourceTree = BUILT_PRODUCTS_DIR; };
+		B564D0500FEE677F00A2098A /* ASINSStringAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ASINSStringAdditions.m; sourceTree = &quot;&lt;group&gt;&quot;; };
+		B564D0510FEE677F00A2098A /* ASINSStringAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ASINSStringAdditions.h; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B5B513670FBEE435002C74D0 /* GHUnit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = GHUnit.framework; path = Frameworks/GHUnit.framework; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B5B513850FBEE515002C74D0 /* GHUnitTestMain.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GHUnitTestMain.m; sourceTree = &quot;&lt;group&gt;&quot;; };
 		B5E3858B0F76606B00FD7857 /* Tests-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = &quot;Tests-Info.plist&quot;; path = &quot;Mac Sample/Tests-Info.plist&quot;; sourceTree = &quot;&lt;group&gt;&quot;; };
@@ -179,8 +179,8 @@
 				B55B5D140F76568E0064029C /* ASIHTTPRequest.m */,
 				B55B5D150F76568E0064029C /* ASINetworkQueue.h */,
 				B55B5D160F76568E0064029C /* ASINetworkQueue.m */,
-				B55B5D170F76568E0064029C /* NSHTTPCookieAdditions.h */,
-				B55B5D180F76568E0064029C /* NSHTTPCookieAdditions.m */,
+				B564D0510FEE677F00A2098A /* ASINSStringAdditions.h */,
+				B564D0500FEE677F00A2098A /* ASINSStringAdditions.m */,
 				B55B5D190F76568E0064029C /* Tests */,
 			);
 			path = Classes;
@@ -283,9 +283,9 @@
 				B55B5D200F76568E0064029C /* ASIFormDataRequest.m in Sources */,
 				B55B5D210F76568E0064029C /* ASIHTTPRequest.m in Sources */,
 				B55B5D220F76568E0064029C /* ASINetworkQueue.m in Sources */,
-				B55B5D230F76568E0064029C /* NSHTTPCookieAdditions.m in Sources */,
 				B55B5ED20F76588D0064029C /* AppDelegate.m in Sources */,
 				B55B5E700F7656A40064029C /* main.m in Sources */,
+				B564D0530FEE678C00A2098A /* ASINSStringAdditions.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -297,10 +297,10 @@
 				B55B60090F76597C0064029C /* ASIHTTPRequestTests.m in Sources */,
 				B55B600A0F7659800064029C /* ASINetworkQueueTests.m in Sources */,
 				B55B600C0F7659880064029C /* ASINetworkQueue.m in Sources */,
-				B55B600E0F76598D0064029C /* NSHTTPCookieAdditions.m in Sources */,
 				B55B600F0F7659900064029C /* ASIHTTPRequest.m in Sources */,
 				B55B60100F7659960064029C /* ASIFormDataRequest.m in Sources */,
 				B5B513860FBEE515002C74D0 /* GHUnitTestMain.m in Sources */,
+				B564D0520FEE677F00A2098A /* ASINSStringAdditions.m in Sources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};</diff>
      <filename>Mac.xcodeproj/project.pbxproj</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>148d67e18370c6e7190b5aa46936f0c31350f94e</id>
    </parent>
  </parents>
  <author>
    <name>Ben Copsey</name>
    <email>ben@allseeing-i.com</email>
  </author>
  <url>http://github.com/pokeb/asi-http-request/commit/4d26738f1f43b75b9c1036b5a663f6d4225d68af</url>
  <id>4d26738f1f43b75b9c1036b5a663f6d4225d68af</id>
  <committed-date>2009-06-21T06:09:32-07:00</committed-date>
  <authored-date>2009-06-21T06:09:32-07:00</authored-date>
  <message>Added new files to mac project</message>
  <tree>a7c32dcff3e5577dc70e70827281da96f77fe36d</tree>
  <committer>
    <name>Ben Copsey</name>
    <email>ben@allseeing-i.com</email>
  </committer>
</commit>
