fix another indentation error
replace has_key with 'in'
replace mimetype keyword parameter with content_type
make the library parameter optional in the urlconfig