fixed typo

Should wrap `url` option in a function if the type, not value is `'string'`.