Skip to content

Refactor makeRequest to prepare to be overridden #379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Sep 15, 2015
Merged

Conversation

mattrobenolt
Copy link
Contributor

This change should be noop, but it will lay the necessary groundwork to just provide a transport option (name tbd).

I just want to make sure this is ok internally before we expose the ability to override this externally.

Refs #183 #335

/cc @benvinegar @dcramer

function makeRequest(data) {
var img,
src;
var url = globalServer + authQueryString;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the only part that I'm not super happy about.

I think the transport should get another auth key with all the pieces. If we send this as a form or XHR, I assume we wouldn't want them to be a part of the querystring, correct?

/cc @dcramer

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

auth should def be something passed into the callback and the default callback would just be responsible for changing the querystring

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, was leaning towards that. Updating...

@benvinegar
Copy link
Contributor

👍

mattrobenolt added a commit that referenced this pull request Sep 15, 2015
Refactor makeRequest to prepare to be overridden
@mattrobenolt mattrobenolt merged commit fe7b594 into master Sep 15, 2015
@mattrobenolt mattrobenolt deleted the refactor branch September 15, 2015 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants