Skip to content

Commit 8c2e18b

Browse files
committed
fix: remove left over log line
1 parent 0b5d675 commit 8c2e18b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

pkg/proxy/proxy.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)