Commits

Matt Stancliff  committed cc54367

Update to compile cleanly for R14

  • Participants
  • Parent commits a800c54

Comments (0)

Files changed (2)

File src/rfc4627_jsonrpc_http.erl

 
 extract_object_and_method(AliasPrefix, Path) ->
     AliasPrefixRe = "^" ++ AliasPrefix ++ "/",
-    case regexp:first_match(Path, AliasPrefixRe) of
-	{match, 1, Length} ->
+    case re:first(Path, AliasPrefixRe, [{capture, first}]) of
+	{match, [{0, Length}]} ->
 	    ObjectMethod = string:substr(Path, Length + 1),
 	    case lists:reverse(string:tokens(ObjectMethod, "/")) of
 		[] -> {<<>>, <<>>};

File src/rfc4627_jsonrpc_inets.erl

 
 -module(rfc4627_jsonrpc_inets).
 -include("rfc4627_jsonrpc.hrl").
--include_lib("inets/src/httpd.hrl").
+-include_lib("inets/src/http_server/httpd.hrl").
 
 -export([do/1, load/2]).