langel / botb_irc_bot

battle of the bits instant relay chat magic
BSD 3-Clause "New" or "Revised" License
11 stars 7 forks source link

Replace space with + in BotB API request URLs #108

Closed jangler closed 2 months ago

jangler commented 2 months ago

For some reason, the BotB API returns HTTP 403 when spaces are used in a request URL. This triggers the catch clause of the promise even though data may actually be returned. + functions identically to except that the status will be HTTP 200.

langel commented 2 months ago

I fixed the issue server side by adding a B flag to the apache rewrite rule. Gonna merge this anyways just for fun. :D