Skip to content

Instantly share code, notes, and snippets.

@danielrbradley
Last active April 13, 2017 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielrbradley/8061ad2800834f6d2eb01aa451cfe406 to your computer and use it in GitHub Desktop.
Save danielrbradley/8061ad2800834f6d2eb01aa451cfe406 to your computer and use it in GitHub Desktop.
AWS API Gateway proxy via Lambda
{
"statusCode":200,
"headers": {
"Content-Type":"image/png"
},
"body":"iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNk+P+/HgAFhAJ/wlseKgAAAABJRU5ErkJggg==",
"isBase64Encoded": true
}

Headers added by chrome...

Going direct to the PNG:

text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8

When linked from img tag in an html page:

image/webp,image/*,*/*;q=0.8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment