gateway_test: comment on platform dependence
License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Oct 5, 2018 at 11:24 UTC
f498459ad2934a46578e97f4d96bd92d68eed5a2
1 file changed
+3
-1
core/corehttp/gateway_test.go
+3
-1
@@ -157,7 +157,9 @@ func TestGatewayGet(t *testing.T) {
157
// 1. It's a valid TLD.
158
// 2. Go treats it as the file extension for "man" files (even though
159
// nobody actually *uses* this extension, AFAIK).
160
- // 3. Go accepts "fnord" (the test value) as a valid man file.
160
+ //
161
+ // Unfortunately, this may not work on all platforms as file type
162
+ // detection is platform dependent.
163
ns["/ipns/example.man"] = path.FromString("/ipfs/" + k)
164
165
t.Log(ts.URL)