<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,7 +1,7 @@
 Django YSlow plugin
 Author: Harish Mallipeddi (harish.mallipeddi@gmail.com)
 
-This Django utility adds new management commands &amp; a couple of template tags which let you generate optimized builds of your Django application. Best practices recommended by Yahoo's YSlow project are adopted.
+This Django utility adds new management commands &amp; a couple of template tags which let you generate optimized builds of your Django application. Best practices recommended by Yahoo's YSlow project are adopted. If you're using Amazon S3 for hosting static files, you can use the upload_to_s3 management command to upload to S3 easily.
 
 This project should be of interest to you if you're writing a Django app and would like to achieve better YSlow grades!
 </diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -67,6 +67,10 @@ class Command(NoArgsCommand):
                     continue # Skip this, because it's not a file.
                 
                 log(&quot;Uploading %s&quot; % filename)
+                # guess content-type
+                content_type = mimetypes.guess_type(filename)[0]
+                if not content_type:
+                    content_type = 'text/plain'
                 upload_options = {
                     'x-amz-acl': 'public-read',
                     'Content-Type': content_type,
@@ -85,10 +89,6 @@ class Command(NoArgsCommand):
                     expires = (datetime.now() + timedelta(days=FAR_FUTURE_EXPIRY)).strftime(HTTP_DATE)
                     upload_options['Expires'] = expires
                 
-                # guess content-type
-                content_type = mimetypes.guess_type(filename)[0]
-                if not content_type:
-                    content_type = 'text/plain'
                 conn.put(
                     BUCKET_NAME, filename, S3.S3Object(filedata),
                     upload_options</diff>
      <filename>management/commands/upload_to_s3.py</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>15d05ef66d9370def43bb8eb77f33c19000855ef</id>
    </parent>
  </parents>
  <author>
    <name>Harish Mallipeddi</name>
    <email>harish@harish-mallipeddis-macbook.local</email>
  </author>
  <url>http://github.com/mallipeddi/django-yslow/commit/06f71d4184e5e3e7c10a9a2617c4adf3eaecf86d</url>
  <id>06f71d4184e5e3e7c10a9a2617c4adf3eaecf86d</id>
  <committed-date>2008-05-06T03:22:20-07:00</committed-date>
  <authored-date>2008-05-06T03:22:20-07:00</authored-date>
  <message>minor bug-fix</message>
  <tree>39836311531eaa66a7f4245c62e25c788875f809</tree>
  <committer>
    <name>Harish Mallipeddi</name>
    <email>harish@harish-mallipeddis-macbook.local</email>
  </committer>
</commit>
