File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -7,3 +7,5 @@ coverage.txt
77/hookdeck-linux
88/hookdeck-windows.exe
99default_cassette.yaml
10+ .vscode /
11+ __debug_bin
Original file line number Diff line number Diff line change @@ -233,14 +233,17 @@ func (p *Proxy) processAttempt(msg websocket.IncomingMessage) {
233233 }
234234 }
235235 }
236-
236+
237237 if bodyIsText {
238238 req .Body = ioutil .NopCloser (strings .NewReader (webhookEvent .Body .Request .DataString ))
239+ req .ContentLength = int64 (len (webhookEvent .Body .Request .DataString ))
239240 } else {
240241 req .Body = io .NopCloser (bytes .NewBuffer (webhookEvent .Body .Request .Data ))
242+ req .ContentLength = int64 (len (webhookEvent .Body .Request .Data ))
241243 }
242244
243245 res , err := client .Do (req )
246+
244247 if err != nil {
245248 color := ansi .Color (os .Stdout )
246249 localTime := time .Now ().Format (timeLayout )
You can’t perform that action at this time.
0 commit comments