mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-30 10:58:31 -05:00
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
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ module Jobs
|
||||||
headers = {
|
headers = {
|
||||||
'Accept' => '*/*',
|
'Accept' => '*/*',
|
||||||
'Connection' => 'close',
|
'Connection' => 'close',
|
||||||
'Content-Length' => body.size,
|
'Content-Length' => body.bytesize,
|
||||||
'Content-Type' => content_type,
|
'Content-Type' => content_type,
|
||||||
'Host' => uri.host,
|
'Host' => uri.host,
|
||||||
'User-Agent' => "Discourse/" + Discourse::VERSION::STRING,
|
'User-Agent' => "Discourse/" + Discourse::VERSION::STRING,
|
||||||
|
|
Loading…
Reference in a new issue