You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2019/04/24 21:04:11 UTC

[GitHub] [couchdb] rnewson edited a comment on issue #2015: parse_revid - Badarg error in HTTP request

rnewson edited a comment on issue #2015: parse_revid  - Badarg error in HTTP request
URL: https://github.com/apache/couchdb/issues/2015#issuecomment-486425149
 
 
   ```
   parse_revid(RevId) when size(RevId) =:= 32 ->
       RevInt = erlang:list_to_integer(?b2l(RevId), 16),
        <<RevInt:128>>;
   parse_revid(RevId) when length(RevId) =:= 32 ->
       RevInt = erlang:list_to_integer(RevId, 16),
        <<RevInt:128>>;
   parse_revid(RevId) when is_binary(RevId) ->
       RevId;
   parse_revid(RevId) when is_list(RevId) ->
       ?l2b(RevId).```

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services