Commits

Anonymous committed 11004d9

an undefined key is not a malformed request

An undefined key is a request to get the props/keys of Luwak.

  • Participants
  • Parent commits a2c6043

Comments (0)

Files changed (1)

src/luwak_wm_file.erl

         _ ->
             {false, RD, Ctx}
     end;
+malformed_request(RD, Ctx) when Ctx#ctx.key =:= undefined ->
+    {false, RD, Ctx};
 malformed_request(RD, Ctx) ->
     HCtx = ensure_handle(Ctx),
     case HCtx#ctx.handle of