<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'NodeJS + ExpressJS: Strip out port from req.headers.host'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 19 Apr 2026 08:44:45 +0000</lastBuildDate>
    <item>
      <title>garwin12i8 said on 17/Apr/2025</title>
      <link>https://snipplr.com/view/65682/nodejs--expressjs-strip-out-port-from-reqheadershost</link>
      <description>&lt;p&gt;The req.headers.host contains the full host string (e.g., example.com:3000) [bitlife](https://lifesimulator.online/). The regular expression /([^:]+)/ captures everything before the colon, effectively giving you just the hostname.&lt;/p&gt;</description>
      <pubDate>Thu, 17 Apr 2025 08:54:43 UTC</pubDate>
      <guid>https://snipplr.com/view/65682/nodejs--expressjs-strip-out-port-from-reqheadershost</guid>
    </item>
  </channel>
</rss>
