File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -208,7 +208,6 @@ func (p *Proxy) processAttempt(msg websocket.IncomingMessage) {
208208 client := & http.Client {
209209 Timeout : time .Duration (timeout ) * time .Millisecond ,
210210 }
211- fmt .Println (bytes .NewBuffer (webhookEvent .Body .Request .Headers ));
212211
213212 req , err := http .NewRequest (webhookEvent .Body .Request .Method , url , nil )
214213 if err != nil {
@@ -227,11 +226,11 @@ func (p *Proxy) processAttempt(msg websocket.IncomingMessage) {
227226 for key , value := range x {
228227 unquoted_value , _ := strconv .Unquote (string (value ))
229228 req .Header .Set (key , unquoted_value )
230-
231- if ( strings .EqualFold (strings .ToLower (key ), strings .ToLower ("content-type" ) )) {
232- if ( strings .Contains (strings .ToLower (string (value )), strings .ToLower ("www-form-urlencoded" )) || strings .Contains (strings .ToLower (string (value )), strings .ToLower ("text/plain" ) )) {
229+
230+ if strings .EqualFold (strings .ToLower (key ), strings .ToLower ("content-type" )) {
231+ if strings .Contains (strings .ToLower (string (value )), strings .ToLower ("www-form-urlencoded" )) || strings .Contains (strings .ToLower (string (value )), strings .ToLower ("text/plain" )) {
233232 bodyIsText = true
234- }
233+ }
235234 }
236235 }
237236
You can’t perform that action at this time.
0 commit comments