Fixed bug incorrectly requesting url, and not type.

Signed-off-by: Eric Nakagawa <ericnakagawa@gmail.com>