aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorDaniel Kraft <[email protected]>2015-09-07 20:38:03 +0200
committerDaniel Kraft <[email protected]>2015-09-07 20:38:03 +0200
commit9cdc3353c5cb30b6aedf04ea8bdff9135751d72d (patch)
treeb6d272cdf9638a9c61241f1902cdfc25bc6a966f /src/init.cpp
parentMerge pull request #6636 (diff)
downloaddiscoin-9cdc3353c5cb30b6aedf04ea8bdff9135751d72d.tar.xz
discoin-9cdc3353c5cb30b6aedf04ea8bdff9135751d72d.zip
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.
Diffstat (limited to 'src/init.cpp')
0 files changed, 0 insertions, 0 deletions