Skip to content

Commit

Permalink
ae.net.http.client: Allow null user agent
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Aug 27, 2015
1 parent 9026702 commit 33f2d83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/http/client.d
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ protected:
}
reqMessage ~= currentRequest.resource ~ " HTTP/1.0\r\n";

if (!("User-Agent" in currentRequest.headers))
if ("User-Agent" !in currentRequest.headers && agent)
currentRequest.headers["User-Agent"] = agent;
if (!compat) {
if (!("Accept-Encoding" in currentRequest.headers))
Expand Down

0 comments on commit 33f2d83

Please sign in to comment.