currencybot / open-exchange-rates

Open Exchange Rates API - free / open source hourly-updated currency data for everybody
http://josscrowcroft.github.com/open-exchange-rates/
190 stars 19 forks source link

openexchangerates.org wrongly corrects historical URLs if date unavailable #13

Closed wjcrowcroft closed 12 years ago

wjcrowcroft commented 12 years ago

Just noticed this, and perhaps it's actually a browser thing - pending further investigation - but it looks like if you're requesting a historical file that doesn't exist, e.g. 1991-01-01.json, the proxy (presumably this is an Apache thing) 'corrects' the URL to 1999-01-01.json

Obviously it should give an error, otherwise you've got inaccurate data.

This started happening when the proxy started downloading, caching and serving the files statically, instead of grabbing them from github each time.

If this is an apache thing intended to prevent 404s, anybody know how to switch it off?

wjcrowcroft commented 12 years ago

For anyone interested, it's an apache feature - mod.speling (yes, that's one 'L') which needs to be turned off to prevent spelling corrections on URLs.