Skip to content

Commit

Permalink
Merge pull request #163 from drashland/pretty-links-content-type-null
Browse files Browse the repository at this point in the history
[pretty-links-content-type-null] set content type
  • Loading branch information
crookse authored Apr 11, 2020
2 parents 4d6a471 + 2e88e42 commit 0eb4df2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/http/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,7 @@ export default class Server {
if (!extension) {
let contents = Deno.readFileSync(this.directory + "/" + request.url_path + "/index.html");
if (contents) {
response.headers.set("Content-Type", "text/html");
return response.sendStatic(null, contents);
}
}
Expand Down

0 comments on commit 0eb4df2

Please sign in to comment.