Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

A more readable version of trailing slash stripping

  • Loading branch information...
commit b8afa6a07d97bf81cdae3c69d80dd8c0969fe931 1 parent 76d09eb
Benjamin Black b authored

Showing 1 changed file with 2 additions and 3 deletions. Show diff stats Hide diff stats

  1. +2 3 src/webmachine_decision_core.erl
5 src/webmachine_decision_core.erl
@@ -432,9 +432,8 @@ decision(v3n11) ->
432 432 BaseUri = case resource_call(base_uri) of
433 433 undefined -> wrcall(base_uri);
434 434 Any ->
435   - case lists:last(Any) of
436   - % 47 is "/"
437   - 47 -> lists:sublist(Any, erlang:length(Any) - 1);
  435 + case [lists:last(Any)] of
  436 + "/" -> lists:sublist(Any, erlang:length(Any) - 1);
438 437 _ -> Any
439 438 end
440 439 end,

0 comments on commit b8afa6a

Please sign in to comment.
Something went wrong with that request. Please try again.