Closed Bug 986427 Opened 10 years ago Closed 10 years ago

GET /calls/ doesn't work - always returns '{ "error": "missing: version" }'

Categories

(Hello (Loop) :: Server, defect)

defect
Not set
normal

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: standard8, Assigned: rhubscher)

References

Details

(Whiteboard: [qa!])

Attachments

(1 file)

55 bytes, text/x-github-pull-request
standard8
: review+
Details | Review
GET /calls/ needs a version parameter, however even when doing a http://localhost:5000/calls?version=0 request, it returns 400, with:

{ "error": "missing: version" }

From reading the code, it looks like it expects the values to be in the JSON body, but that isn't valid.
Assignee: nobody → rhubscher
It also requires the Content-Type to be application/json, and I'm not sure that that is really necessary.
Attached file Link to GitHub PR.
Attachment #8394726 - Flags: review?(standard8)
Status: NEW → ASSIGNED
Comment on attachment 8394726 [details] [review]
Link to GitHub PR.

Looks good, and works locally. r=Standard8
Attachment #8394726 - Flags: review?(standard8) → review+
https://github.com/mozilla-services/loop-server/commit/85a3ccade0e7dbfbb95ab308e6f113db8e4c2c94
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Verified in code and through unit tests.
Status: RESOLVED → VERIFIED
QA Contact: jbonacci
Whiteboard: [qa!]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: