From bb051f2c58512f10829397cf35e549cc046bd78f Mon Sep 17 00:00:00 2001 From: Jacob Carlborg Date: Sun, 13 Jul 2014 16:22:54 +0200 Subject: [PATCH] Issue 71: Unexpected redirect for method GET. --- tango/net/http/HttpClient.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tango/net/http/HttpClient.d b/tango/net/http/HttpClient.d index 1a3743c12..d7289ac03 100644 --- a/tango/net/http/HttpClient.d +++ b/tango/net/http/HttpClient.d @@ -128,7 +128,7 @@ class HttpClient public enum Version {OnePointZero, OnePointOne}; // standard set of request methods ... - enum RequestMethod Get = {"GET"}, + static immutable RequestMethod Get = {"GET"}, Put = {"PUT"}, Head = {"HEAD"}, Post = {"POST"},