Skip to content
This repository has been archived by the owner on Jul 23, 2021. It is now read-only.

Commit

Permalink
Fix var name typo (#141)
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuster authored Nov 3, 2020
1 parent a200114 commit 545c979
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions example/handler.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict'

const reponseHeadersJson = {
const responseHeadersJson = {
'Access-Control-Allow-Origin': '*', // Required for CORS support to work
'Access-Control-Allow-Credentials': true,
'Access-Control-Expose-Headers': 'link',
Expand All @@ -18,7 +18,7 @@ module.exports.router = (event, context, callback) => {
}

function exampleMessageGet (event, context, callback) {
let headers = reponseHeadersJson
let headers = responseHeadersJson
let scheme = event.headers['X-Forwarded-Proto']
let host = event.headers.Host
let path = event.requestContext.path.replace('example/message','example/do-something')
Expand All @@ -37,7 +37,7 @@ function exampleDoSomethingPost (event, context, callback) {
if (body.constructor !== Array) {
return {
statusCode: 400,
headers: reponseHeadersJson,
headers: responseHeadersJson,
body: JSON.stringify({
message: 'The supplied request body must be a JSON array',
statusCode: '400'
Expand All @@ -47,7 +47,7 @@ function exampleDoSomethingPost (event, context, callback) {
let itemCount = body.length
return {
statusCode: 200,
headers: reponseHeadersJson,
headers: responseHeadersJson,
body: JSON.stringify({
result: 'Thanks for sending that data',
submittedItems: itemCount
Expand Down

0 comments on commit 545c979

Please sign in to comment.