Skip to content

Commit

Permalink
Fix custom domains, specify document type
Browse files Browse the repository at this point in the history
  • Loading branch information
NavidK0 committed Jan 15, 2021
1 parent 6114cda commit 09dd044
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion server/src/controllers/info-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {FastifyInstance, FastifyReply, FastifyRequest} from "fastify";
import {DatabaseManager} from "../data/database-manager";
import {InfoService} from "../services/info-service";

// TODO Implement server info controller
/**
* This controller maps and provides for all the controllers under /info.
*/
Expand Down
2 changes: 1 addition & 1 deletion server/src/utils/custom-domains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export class CustomDomainHandler {

let url = `${clientDomain}/u/${profile.handle}`;

reply.status(200).send(`<!DOCTYPE html>
reply.status(200).type('text/html').send(`<!DOCTYPE html>
<html lang="en">
<head>
<!-- SEO Title -->
Expand Down

0 comments on commit 09dd044

Please sign in to comment.