Fixed bug in resourceloader

The resourceloader didn't properly use the response object yet