XmlResponse within RestHelper PF not returning Content-Type header #1191

Closed
amullins opened this Issue Jan 31, 2012 · 2 comments

4 participants

@amullins

[[url:https://groups.google.com/d/topic/liftweb/tpg6F2Xln24/discussion|Mailing List Thread]]

object Twilio extends RestHelper {
  serve( "api" / "twilio" prefix {
    case _ => () => {
      Full(XmlResponse(Goodbye!))
    }
  })
}

curl -XPOST --dump-header - http://localhost:8080/api/twilio
HTTP/1.1 200 OK
Expires: Tue, 31 Jan 2012 05:11:22 GMT
Content-Length: 101
Cache-Control: no-cache, private, no-store
Pragma: no-cache
Date: Tue, 31 Jan 2012 05:11:22 GMT
X-Lift-Version: 2.4
Server: Jetty(7.4.5.v20110725)


Goodbye!
@dpp dpp was assigned Mar 1, 2012
@Shadowfiend
Lift Web Framework member

Fixed in #1375.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment