Advertisement
Guest User

Untitled

a guest
May 19th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. 'use strict';
  2.  
  3. exports.handler = (event, context, callback) => {
  4. const response = event.Records[0].cf.response;
  5. const headers = response.headers;
  6.  
  7. headers['test-header'] = [{
  8. key: 'test-header',
  9. value: event.Records[0].cf.request.querystring
  10. }];
  11.  
  12.  
  13. callback(null, response);
  14. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement