diff --git a/core/play/src/main/scala/play/api/mvc/Request.scala b/core/play/src/main/scala/play/api/mvc/Request.scala index 16aac385403..9881c9d87ae 100644 --- a/core/play/src/main/scala/play/api/mvc/Request.scala +++ b/core/play/src/main/scala/play/api/mvc/Request.scala @@ -96,7 +96,7 @@ trait Request[+A] extends RequestHeader { override def addAttrs(e1: TypedEntry[_], e2: TypedEntry[_], e3: TypedEntry[_]): Request[A] = withAttrs(attrs + (e1, e2, e3)) override def addAttrs(entries: TypedEntry[_]*): Request[A] = - withAttrs(attrs + (entries: _*)) + withAttrs(attrs.+(entries: _*)) override def removeAttr(key: TypedKey[_]): Request[A] = withAttrs(attrs - key) override def withTransientLang(lang: Lang): Request[A] = diff --git a/core/play/src/main/scala/play/api/mvc/RequestHeader.scala b/core/play/src/main/scala/play/api/mvc/RequestHeader.scala index d1021e1d5d3..b0de617c2ea 100644 --- a/core/play/src/main/scala/play/api/mvc/RequestHeader.scala +++ b/core/play/src/main/scala/play/api/mvc/RequestHeader.scala @@ -186,7 +186,7 @@ trait RequestHeader { * @return The new version of this object with the new attributes. */ def addAttrs(entries: TypedEntry[_]*): RequestHeader = - withAttrs(attrs + (entries: _*)) + withAttrs(attrs.+(entries: _*)) /** * Create a new versions of this object with the given attribute removed. diff --git a/core/play/src/main/scala/play/api/mvc/Results.scala b/core/play/src/main/scala/play/api/mvc/Results.scala index 7767ad5896c..c2fabd02aa6 100644 --- a/core/play/src/main/scala/play/api/mvc/Results.scala +++ b/core/play/src/main/scala/play/api/mvc/Results.scala @@ -429,7 +429,7 @@ case class Result( * @return The new version of this object with the new attributes. */ def addAttrs(entries: TypedEntry[_]*): Result = - withAttrs(attrs + (entries: _*)) + withAttrs(attrs.+(entries: _*)) /** * Create a new versions of this object with the given attribute removed.