mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
* Logs should support specifying region when using S3-compatible object store * Use aws-sdk-go client for s3 backed logstore * fixes vendor with aws-sdk-go dependencies
15 lines
289 B
Go
15 lines
289 B
Go
package apigateway
|
|
|
|
import (
|
|
"github.com/aws/aws-sdk-go/aws/client"
|
|
"github.com/aws/aws-sdk-go/aws/request"
|
|
)
|
|
|
|
func init() {
|
|
initClient = func(c *client.Client) {
|
|
c.Handlers.Build.PushBack(func(r *request.Request) {
|
|
r.HTTPRequest.Header.Add("Accept", "application/json")
|
|
})
|
|
}
|
|
}
|