<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -67,7 +67,8 @@
     NSString* key;
     while ((key = [e nextObject]) != nil) {
 #endif
-        [formData appendFormat:@&quot;\r\n--%@\r\n&quot;, boundary];
+		[formData appendData:[[NSString stringWithFormat:@&quot;--%@\r\n&quot;, boundary] dataUsingEncoding:NSUTF8StringEncoding]];
+
         // TODO escape keys with quotes in them.
         [formData appendFormat:@&quot;Content-Disposition: form-data; name=\&quot;%@\&quot;\r\n&quot;, key];
         
@@ -76,16 +77,16 @@
             [formData appendString:@&quot;\r\n&quot;];
             [formData appendData:value];
         } else if ([value isKindOfClass:[NSString class]]) {
-            [formData appendFormat:@&quot;Content-Type: text/plain; charset=utf-8\r\n\r\n&quot;];
+            //[formData appendFormat:@&quot;Content-Type: text/plain; charset=utf-8\r\n\r\n&quot;]; uncomment this if you want text to be interpreted as files!
+            [formData appendString:@&quot;\r\n&quot;];
             [formData appendString:value];
+            [formData appendString:@&quot;\r\n&quot;];
         } else {
             NSAssert1(NO, @&quot;unknown value class: %@&quot;, [value className]);
         }
     }
     [formData appendFormat:@&quot;\r\n--%@--\r\n&quot;, boundary];
     
-    //--
-    // 
     NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
     [request setHTTPMethod:@&quot;POST&quot;];
     [request setValue:[NSString stringWithFormat:@&quot;multipart/form-data; boundary=%@&quot;, boundary] forHTTPHeaderField:@&quot;Content-Type&quot;];</diff>
      <filename>lib/NSURLRequest+postForm.m</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>9539289d03bc5f17ac879ca551c6598d41ebcb58</id>
    </parent>
  </parents>
  <author>
    <name>Mantas Masalskis</name>
    <email>mantas@idev.lt</email>
  </author>
  <url>http://github.com/rentzsch/jrfeedbackprovider/commit/5f037fc51063c393e760d8a16b17d5b3a5d2cad0</url>
  <id>5f037fc51063c393e760d8a16b17d5b3a5d2cad0</id>
  <committed-date>2009-09-05T09:13:36-07:00</committed-date>
  <authored-date>2009-09-05T02:02:33-07:00</authored-date>
  <message>Posting Form to Rails fixed

Signed-off-by: Jonathan 'Wolf' Rentzsch &lt;jwr.git@redshed.net&gt;</message>
  <tree>b42903a93a7c023020a8cc260715ab507364fae1</tree>
  <committer>
    <name>Jonathan 'Wolf' Rentzsch</name>
    <email>jwr.git@redshed.net</email>
  </committer>
</commit>
