Skip to content

Commit

Permalink
fix: Fix app platform gateway header copy.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjholm committed May 28, 2021
1 parent 55d8c56 commit 5a90765
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions plugins/gateway/app_platform/http.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,9 @@ func httpHandler(handler handler.TriggerHandler) func(ctx *fasthttp.RequestCtx)
ctx.Error(fmt.Sprintf("Error handling HTTP Request: %v", err), 500)
return
}
// responseBody, _ := ioutil.ReadAll(response.Body)

if response.Header != nil {
// Set headers...
response.Header.VisitAll(func(key []byte, val []byte) {
ctx.Response.Header.AddBytesKV(key, val)
})
response.Header.CopyTo(&ctx.Response.Header)
}

// Avoid content length header duplication
Expand Down

0 comments on commit 5a90765

Please sign in to comment.