OSDN Git Service

Hulk did something
[bytom/vapor.git] / vendor / github.com / kr / secureheader / heroku.go
diff --git a/vendor/github.com/kr/secureheader/heroku.go b/vendor/github.com/kr/secureheader/heroku.go
new file mode 100644 (file)
index 0000000..cc6d84d
--- /dev/null
@@ -0,0 +1,8 @@
+// +build heroku
+
+package secureheader
+
+// Heroku dynos sit behind a proxy. Trust that the proxy sets
+// X-Forwarded-Proto correctly and that eavesdropping won't happen
+// on the last hop.
+const defaultUseForwardedProto = true