Comments (6)
Ok I'm on it, expect v2.3.1
by the end of the day :)
from serverless-offline.
Done! Please enjoy v2.3.1
and tell me if it worked :)
from serverless-offline.
Thanks! It works perfectly for dynamic Content-Type
headers now. But it seems there's one case that still doesn't work - fixed strings like this:
"default": {
"statusCode": "200",
"responseParameters": {
"method.response.header.Content-Type": "'text/html'"
},
"responseModels": {},
"responseTemplates": { "application/json": "$input.path('$')" }
}
In this case the plugin sets the Content-Type
to 'text/html'
(with single quotes around it). The correct value would be text/html
(without quotes).
from serverless-offline.
Doesn't the unquoted version work on APIG? Please do not close this issue, I'll work on it later, thanks for the help @arabold !
from serverless-offline.
Done! See v2.3.2
.
from serverless-offline.
The unquoted version wouldn't work as APIG needs to distinguish between a hardcoded value ('text/html'
) and a dynamic one (integration.response.body.contentType
). The latest version works perfectly though! Thanks again.
from serverless-offline.
Related Issues (20)
- How to clear cache on cognito HOT 1
- x-api-key no longer being provided HOT 4
- Lambci docker images are deprecated and no more maintained. HOT 1
- contentHandling
- MaxListenersExceededWarning with esbuild
- Expired image for lambci/lambda:go1.x HOT 3
- Sponsors inquiry
- Node 20 support? HOT 3
- serverless offline with angular cli application
- NODE_PRESERVE_SYMLINKS option?
- free(): invalid next size (fast), Segmentation Faults (SIGSEGV) and other native Node.js crashes HOT 4
- Purpose of env.AUTHORIZER
- Disable lambda print to console
- Clarity on `identitySource` and `authorization` header in authorizers
- Support lambda direct requests over HTTPS
- Profile X requires multi-factor authentication, but no MFA code callback was provided
- Only top method is used in alb event with multiple methods
- env variables not passed into serverless-offline while debugging with visual studio
- CONVERT_TO_TEXT parameter does not convert binary data of the request to base64
- Lambda functions decode event.payload as utf8 strings for requests with Content-type application/octet-stream
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-offline.