HomePhabricator

Simplify logic of REST request suffix parsing.
9cdc3353c5cbUnpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Simplify logic of REST request suffix parsing.

This patch changes the way the suffix (giving the requested data format) is
parsed for REST requests. Before, the string was split at '.'
characters and it was assumed that the second part was the suffix.

Now, we look for the last dot and use that to determine the suffix.
This allows for strings that contain dots (not used now, though), and
seems, in general, to be clearer and more intuitive.

Details

Provenance
Daniel Kraft <d@domob.eu>Authored on Sep 7 2015, 18:38
schancelPushed on Jan 5 2018, 21:58
schancelPushed on Jan 5 2018, 21:39
schancelPushed on Jan 5 2018, 21:17
Parents
rSTAGING536207f3167d: Merge pull request #6636
Branches
Unknown
Tags
Unknown

Event Timeline

Daniel Kraft <d@domob.eu> committed rSTAGING9cdc3353c5cb: Simplify logic of REST request suffix parsing. (authored by Daniel Kraft <d@domob.eu>).Sep 7 2015, 18:38