juliuste / bahn.guru

Deutsche Bahn ticket price calendar.
https://bahn.guru
ISC License
367 stars 22 forks source link

use express `send` instead of `end` in responses #13

Closed k-nut closed 6 years ago

k-nut commented 6 years ago

this is to make sure that headers such as Content-Type are automatically set as required (which is needed for Twitter to properly create a card for the content).

The express documentation actually says about end: If you need to respond with data, instead use methods such as res.send() and res.json().

juliuste commented 6 years ago

👍

juliuste commented 6 years ago

Deployed.

k-nut commented 6 years ago

Yeah, it finally works. Thank you!

screen shot 2018-02-06 at 07 54 46

juliuste commented 6 years ago

No problem, thanks for helping me! 🙂