Use http not https for

I have a legacy application that can talk http not https. When I hit an endpoint setup with the serverless-domain-manager plugin I get a 301 rather than the content I want. How can I serve up the results of the endpoint, rather than a forward message?

Here is the response I get using httpie

HTTP/1.1 301 Moved Permanently
Connection: keep-alive
Content-Length: 183
Content-Type: text/html
Date: Sat, 07 Sep 2019 11:16:56 GMT
Location: https://dev.patternmaker.cc/env
Server: CloudFront
Via: 1.1 44cd593d82a2d200a94217033c614c6a.cloudfront.net (CloudFront)
X-Amz-Cf-Id: r8evhOZV6AuGinCp2ciyrMf5x0y6oKnTPZKUJFqa6A7E_AdRQYqlKA==
X-Amz-Cf-Pop: SEA19-C1
X-Cache: Redirect from cloudfront

301 Moved Permanently

301 Moved Permanently


CloudFront