Merge pull request #4451 from fantasticfears/webhooks-content-length
FIX: Content-Lenght should be the size in octets
This commit is contained in:
commit
ff5f20bd39
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue