Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

@mthenw
Copy link
Contributor

@mthenw mthenw commented Feb 19, 2018

This PR flattens the headers object that it's passed to the functions. Previously it was map[string][]string which means that user always had to take the first element of an array. Not it's map[string]string so user is able to access header simper e.g. event.data.headers['Content-Type'].

In case of multivalue headers they are concatenated with , according to HTTP spec.

@mthenw mthenw merged commit 2ddbcf9 into master Feb 19, 2018
@mthenw mthenw deleted the headers branch February 19, 2018 08:48
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants