Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating to understand http vs. https

  • Loading branch information...
commit ba96966b24a73bc4b64d5875863d31f9bf4a2ddf 1 parent c0f137e
@tangledhelix tangledhelix authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 templates/head.html
View
7 templates/head.html
@@ -1,4 +1,9 @@
-<base href="http://<!--#echo var="HTTP_HOST" --><!--#echo var="Base_URL" -->/"/>
+<!--#if expr='"$HTTPS" = "on"' -->
+<!--#set var="HTTP_WIRE_PROTOCOL" value="https" -->
+<!--#else -->
+<!--#set var="HTTP_WIRE_PROTOCOL" value="http" -->
+<!--#endif -->
+<base href="<!--#echo var="HTTP_WIRE_PROTOCOL" -->://<!--#echo var="HTTP_HOST" --><!--#echo var="Base_URL" -->/"/>
<link rel="stylesheet" href="css/main.css" type="text/css" />
<link rel="alternate" type="application/atom+xml" title="Atom" href="atom.xml" />
<link rel="alternate" type="application/atom+xml" title="Atom - Comments" href="atom-comments.xml" />
Please sign in to comment.
Something went wrong with that request. Please try again.