FIX: Content-Lenght should be the size in octets

This commit is contained in:
Erick Guan 2016-09-21 10:31:20 +08:00
parent afef9a0668
commit 707fcb9434
No known key found for this signature in database
GPG key ID: 10075E9E76407351

View file

@ -42,7 +42,7 @@ module Jobs
headers = {
'Accept' => '*/*',
'Connection' => 'close',
'Content-Length' => body.size,
'Content-Length' => body.bytesize,
'Content-Type' => content_type,
'Host' => uri.host,
'User-Agent' => "Discourse/" + Discourse::VERSION::STRING,