Skip to content

Commit

Permalink
Fix status code check according to recent changes in OSRM. Close #184
Browse files Browse the repository at this point in the history
  • Loading branch information
perliedman committed Dec 20, 2015
1 parent d9fd8d9 commit 0087ffc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/L.Routing.OSRM.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
i;

context = context || callback;
if (response.status !== 0) {
if (response.status !== 0 && response.status !== 200) {
callback.call(context, {
status: response.status,
message: response.status_message
Expand Down

0 comments on commit 0087ffc

Please sign in to comment.