superfaceai / one-sdk-js

1️⃣ One Node.js SDK for all the APIs you want to integrate with
https://superface.ai
MIT License
47 stars 3 forks source link

Fix for headers handling in filters #294

Closed freaz closed 2 years ago

freaz commented 2 years ago

Description

Added set of helper functions to work with headers in interpreter.

Best would be to switch to Headers which isn't available for not until 18.0.0. But I wanted to avoid bigger refactoring and implementing own Headers class.

Motivation and Context

In #290 was fixed how accept header is set. This extends it to entire headersFilter.

Types of changes

Checklist: