You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to retrieve a value from a request header for using at body content section for my response. The request header the client sends looks like it: Authorization: 123#abc
Then, at body content section at DuckRails, I tried to read that value this way: var header = headers['Authorization'].split('#')[1];
But when I test the response I get a 200 Ok, but with this error:
Duckrails-Error: TypeError: Cannot read property 'split' of undefined
Am I reading the headers in a wrong way?
The text was updated successfully, but these errors were encountered:
Hello,
I'm trying to retrieve a value from a request header for using at body content section for my response. The request header the client sends looks like it:
Authorization: 123#abc
Then, at body content section at DuckRails, I tried to read that value this way:
var header = headers['Authorization'].split('#')[1];
But when I test the response I get a 200 Ok, but with this error:
Duckrails-Error: TypeError: Cannot read property 'split' of undefined
Am I reading the headers in a wrong way?
The text was updated successfully, but these errors were encountered: