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
From a person using this: after using HTTrack to get a static copy of a website served by http-server, they noticed the content-type meta tag was not present, so httrack added one.
I confirmed this by running it myself:
<!doctype html><htmllang="en"><!-- Mirrored from localhost:9000/ by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 28 Jun 2023 00:12:58 GMT --><!-- Added by HTTrack --><metahttp-equiv="content-type" content="text/html;charset=utf-8" /><!-- /Added by HTTrack --><head><metacharset="utf-8"><metaname="viewport" content="width=device-width, initial-scale=1"><metaname="generator" content="github.com/patrickdappollonio/http-server development"><metaname="theme-color" content="#3f51b5"><title>HTTP File Server</title><linkrel="stylesheet" href="_/s8jhp0b1/assets/style.css"><linkrel="stylesheet" href="_/s8jhp0b1/assets/roboto-font.css"><linkrel="stylesheet" href="_/s8jhp0b1/assets/fontawesome-6.2.0.css"><linkrel="icon" type="image/svg+xml" href="_/s8jhp0b1/assets/file-server.svg"><linkrel="stylesheet" href="_/s8jhp0b1/assets/gfm.css"></head>
We'll need to add the header. While the Go standard library will do content type hinting, it's better if we set this ourselves. Even more so for non-western languages.
The text was updated successfully, but these errors were encountered:
From a person using this: after using HTTrack to get a static copy of a website served by
http-server
, they noticed thecontent-type
meta tag was not present, sohttrack
added one.I confirmed this by running it myself:
We'll need to add the header. While the Go standard library will do content type hinting, it's better if we set this ourselves. Even more so for non-western languages.
The text was updated successfully, but these errors were encountered: