Hi,

I need XmlResponse with cookies, but have gotten following error.

  $ mvn scala:console

  scala> import _root_.net.liftweb.http._
  import _root_.net.liftweb.http._

  scala> new XmlResponse(<foo />){
       |   override def cookies = S.responseCookies
       | }
  <console>:8: error: type mismatch;
   found   : List[net.liftweb.http.provider.HTTPCookie]
   required: object Nil
         override def cookies = S.responseCookies
                                             ^

It will be nice, if XmlResonse#cookies is defined as follows,

  case class XmlResponse(xml: Node) extends NodeResponse {
    def docType = Empty
    def code = 200
    def headers = List("Content-Type" -> "text/xml; charset=utf-8")
    def cookies: List[HTTPCookie] = Nil    // !!
    def out = xml
  }

If it is allowed, I'll commit it after the review process.


Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
    +1-415-578-3454
Skype callto://jcraft/
twitter: http://twitter.com/ymnk

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to 
liftweb+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to