From 9c0a2bd6a18ff01d363472981d8274d997e85735 Mon Sep 17 00:00:00 2001 From: Jocelyn Fiat Date: Tue, 26 Feb 2013 15:33:00 +0100 Subject: [PATCH] prefer 2 append call, rather than create a temp intermediary string object with + --- library/network/protocol/http/src/http_header.e | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/library/network/protocol/http/src/http_header.e b/library/network/protocol/http/src/http_header.e index 8e78fba6..91c8a201 100644 --- a/library/network/protocol/http/src/http_header.e +++ b/library/network/protocol/http/src/http_header.e @@ -559,13 +559,16 @@ feature -- Cookie if domain /= Void and then not domain.same_string ("localhost") then - s.append ("; Domain=" + domain) + s.append ("; Domain=") + s.append (domain) end if path /= Void then - s.append ("; Path=" + path) + s.append ("; Path=") + s.append (path) end if expiration /= Void then - s.append ("; Expires=" + expiration) + s.append ("; Expires=") + s.append (expiration) end if secure then s.append ("; Secure")