Hi @philippkayser, this is a known limitation I am afraid. n8n does not respect this header when downloading a file using the HTTP Request node.
You might want to leave a vote on the corresponding feature request:
I have also provided a workaround in the feature request (using the older Function Item node since the Code node wasn’t a thing back then, but it should still work).