We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9aebc3a commit 89a3abbCopy full SHA for 89a3abb
src/server.ts
@@ -108,7 +108,7 @@ export function getServer(
108
app.disable('x-powered-by');
109
110
// Disable Express eTag response header
111
- app.disable('etag');
+ app.set('etag', false);
112
113
if (
114
functionSignatureType === 'event' ||
test/integration/http.ts
@@ -105,7 +105,8 @@ describe('HTTP Function', () => {
105
)
106
.set('Content-Type', 'application/json')
107
.expect(test.expectedBody)
- .expect(test.expectedStatus);
+ .expect(test.expectedStatus)
+ .expect(res => assert(!res.get('etag')));
assert.strictEqual(callCount, test.expectedCallCount);
});
0 commit comments