<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -41,8 +41,8 @@ module Halcyon
   class Client
     include Exceptions
     
-    USER_AGENT = &quot;JSON/#{JSON::VERSION} Compatible (en-US) Halcyon::Client/#{Halcyon.version}&quot;
-    CONTENT_TYPE = 'application/json'
+    USER_AGENT = &quot;JSON/#{JSON::VERSION} Compatible (en-US) Halcyon::Client/#{Halcyon.version}&quot;.freeze
+    CONTENT_TYPE = &quot;application/x-www-form-urlencoded&quot;.freeze
     DEFAULT_OPTIONS = {
       :raise_exceptions =&gt; false
     }
@@ -162,8 +162,9 @@ module Halcyon
     # exceptions specifically.
     def request(req, headers={})
       # set default headers
-      req[&quot;Content-Type&quot;] = CONTENT_TYPE
       req[&quot;User-Agent&quot;] = USER_AGENT
+      req[&quot;Content-Type&quot;] = CONTENT_TYPE unless req.body.nil?
+      req[&quot;Content-Length&quot;] = req.body unless req.body.nil?
       
       # apply provided headers
       self.headers.merge(headers).each do |(header, value)|</diff>
      <filename>lib/halcyon/client.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>30b965e8e9d305f109e5cff5ddb31e351a25806d</id>
    </parent>
  </parents>
  <author>
    <name>Matt Todd</name>
    <email>chiology@gmail.com</email>
  </author>
  <url>http://github.com/mtodd/halcyon/commit/8847928b1b28cc3a9191920df328d4fac52a1202</url>
  <id>8847928b1b28cc3a9191920df328d4fac52a1202</id>
  <committed-date>2008-08-28T14:11:44-07:00</committed-date>
  <authored-date>2008-08-28T14:11:44-07:00</authored-date>
  <message>Fixed issue with the Content-Type being set incorrectly. Fixes specs failing. [#60 state:resolved]</message>
  <tree>a5a6002c73c418402233b8272f650a97f5d6ff16</tree>
  <committer>
    <name>Matt Todd</name>
    <email>chiology@gmail.com</email>
  </committer>
</commit>
