def parse_v5_resp(r):
    """Parse the response from the server into a dict."""
    ans = {}
    for line in r.splitlines():
        if line == "==END==":
            break
        option, _, value = line.partition("=")
        ans[option] = value
    return ans