[fixes #80928120] queryForResource was not picking up token header prope...

...rly