solid-client icon indicating copy to clipboard operation
solid-client copied to clipboard

Fix response.exists() logic

Open dmitrizagidulin opened this issue 8 years ago • 1 comments

Currently, response.exists() will never return false (since the web.solidRequest() method returns an error object when status < 300). Fix this.

dmitrizagidulin avatar Mar 28 '16 14:03 dmitrizagidulin

same applies to solidResponse.xhr.status === 403 suggested in https://github.com/solid/solid-client#getting-information-about-a-resource

responsible code in solid-web-client : https://github.com/solid/solid-web-client/blob/f7c9f2e673bc956c67fcee091beaeebfc35687d9/src/client.js#L312-L318

elf-pavlik avatar Oct 17 '16 19:10 elf-pavlik