Skip to content
This repository was archived by the owner on Mar 28, 2019. It is now read-only.
This repository was archived by the owner on Mar 28, 2019. It is now read-only.

Odd escaping of slashes in URLs in /v1/ endpoint #224

@pdehaan

Description

@pdehaan

I'm seeing some unexpected results when trying to request the /v1/ endpoint, specifically around the escaping of the slashes in the URLs:

{"url":"https:\/\/readinglist.stage.mozaws.net","documentation":"https:\/\/readinglist.readthedocs.org\/","version":"1.3.0","hello":"readinglist"}

curl:

$ curl https://readinglist.stage.mozaws.net/v1/
{"url":"https:\/\/readinglist.stage.mozaws.net","documentation":"https:\/\/readinglist.readthedocs.org\/","version":"1.3.0","hello":"readinglist"}

httpie:

This seems to correctly convert the backslashes. 🤷

$ http GET https://readinglist.stage.mozaws.net/v1/

HTTP/1.1 200 OK
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization,X-Conditions-Accepted
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Expose-Headers: Backoff, Retry-After, Alert
Access-Control-Max-Age: 1728000
Backoff: None
Connection: keep-alive
Content-Length: 146
Content-Type: application/json; charset=UTF-8
Date: Thu, 26 Mar 2015 22:17:43 GMT

{
    "documentation": "https://readinglist.readthedocs.org/",
    "hello": "readinglist",
    "url": "https://readinglist.stage.mozaws.net",
    "version": "1.3.0"
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions