-
Notifications
You must be signed in to change notification settings - Fork 296
fix: res.req only in Node.js, in browser use res.url instead #798
Conversation
License: MIT Signed-off-by: Alan Shaw <[email protected]>
| if (isNode) { | ||
| log(res.req.method, `${res.req.getHeaders().host}${res.req.path}`, res.statusCode, res.statusMessage) | ||
| } else { | ||
| log(res.url, res.statusCode, res.statusMessage) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the method available or just the URL?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I looked but did not see the method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fair enough
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's all POST anyway..
|
Ok so tests are still failing but for other reasons, they got a whole lot further than they did last time (for the ones that actually got started). |
|
@alanshaw @achingbrain When I run last version of ipfs-api inside Electron, |
|
Thanks @requilence - I've created an issue to track this #807 - would you be willing to send a PR to fix this? |
…active#798) License: MIT Signed-off-by: Alan Shaw <[email protected]>
No description provided.