question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

need rendering variables in http request headers

See original GitHub issue

if payload.fields has variables referenced in defaults.headers, the headers does not get updated.

{
  "config": {
    "payload": {
        "path": "./person.csv",
        "fields": [
            "firstName",
            "lastName"
        ],
    },
    "defaults": {
      "headers": {
        "Content-Type": "application/json",
        "Accept": "application/json",
        "x-full-name": "{{ firstName }} {{ lastName }}" /* <--- does not get updated */
      }
    }
  }
}

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
manuquinterocommented, Dec 3, 2020

Did someone find a workaround for this?

1reaction
Lobosquecommented, Oct 9, 2019

I have a similar situation to @lucamartini - i want to retrieve different api keys (set in a header) from a csv file. Any recommendations/workarounds?

Read more comments on GitHub >

github_iconTop Results From Across the Web

HTTP headers - MDN Web Docs - Mozilla
Request headers contain more information about the resource to be fetched, or about the client requesting the resource. Response headers hold ...
Read more >
Setting HTTP request headers and IIS server variables
This walkthrough will guide you through how to use URL Rewrite Module v 2.0 to set HTTP request headers and IIS server variables....
Read more >
Can I pass custom data in the HTTP header? - Stack Overflow
I want to augment each of these web methods with an extra optional parameter (Int64 or Int32) but adding new methods with this...
Read more >
HTTP/1.1: Header Field Definitions
The Accept request-header field can be used to specify certain media types which are acceptable for the response. Accept headers can be used...
Read more >
HTTP Headers for Static Sites - Render
Since static sites don't have a server-side component that can inject custom HTTP headers in responses, Render lets you define response headers for...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found