← Back to team overview

openlp-core team mailing list archive

[Bug 1548014] Re: Remotes API calls using authentication return strange response body

 

"This is the correct behaviour."
Yes, it's correct. The song changes normally.

My question is: why, in the response body, is there the content of
response header?

On iOS i'm getting an error when the library that I'm using try to parse
the response. So, the app thinks that something wrong happens.

I solved this with a simple verification
http://bazaar.launchpad.net/~danielborges93/openlp/ios-
remote/view/head:/Remote/Classes/Util/ErrorUtil.swift on line 16, but
this is bothering me.

This is the function that calls this method on API
http://bazaar.launchpad.net/~danielborges93/openlp/ios-
remote/view/head:/Remote/Classes/Network/LiveAPI.swift

-- 
You received this bug notification because you are a member of OpenLP
Core, which is subscribed to OpenLP.
https://bugs.launchpad.net/bugs/1548014

Title:
  Remotes API calls using authentication return strange response body

Status in OpenLP:
  New

Bug description:
  Any calls to API using HTTP authentication returns a strange response
  body. Its looks like that the HTTP header returns as body.

  Example of BODY RESPONSE using authentication:

  HTTP/1.0 200 OK
  Server: BaseHTTP/0.6 Python/3.4.3
  Date: Sun, 21 Feb 2016 06:31:43 GMT
  Content-type: text/html
  Cache-Control: no-cache, no-store, must-revalidate
  Pragma: no-cache
  Expires: 0

  Without authentication none body is returned, as expected.

  OpenLP 2.2.1
  Mac OS 10.11.3

To manage notifications about this bug go to:
https://bugs.launchpad.net/openlp/+bug/1548014/+subscriptions


References