Skip to content
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

SDK - Client - Fixed client on Windows #2524

Merged

Conversation

Ark-kun
Copy link
Contributor

@Ark-kun Ark-kun commented Nov 1, 2019

URLs joining should not depend on OS path separator.


This change is Reviewable

URLs joining should not depend on OS path separator.
@Ark-kun
Copy link
Contributor Author

Ark-kun commented Nov 1, 2019

/retest

@numerology
Copy link

/lgtm
Actually that's a bit of surprising to me. What does it look like under windows if we use os.path.join?

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Nov 4, 2019

/approve

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Ark-kun

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@Ark-kun
Copy link
Contributor Author

Ark-kun commented Nov 4, 2019

os.path.join should not be used for joining URIs. (There is urllib. urljoin for that).
Otherwise on Windows and some other systems it will use backslashes instead of slashes. The resulting URIs like https://site.com\apis/foo are invalid.

@k8s-ci-robot k8s-ci-robot merged commit 9b98f15 into kubeflow:master Nov 4, 2019
magdalenakuhn17 pushed a commit to magdalenakuhn17/pipelines that referenced this pull request Oct 22, 2023
…ust json) (kubeflow#2524)

* - Added support for parsing body formats other than json
- Fixed the hint text to match the input arguments

Signed-off-by: Satish Bethi <satishmsid@gmail.com>

* - Updated possible json headers
- Added `content-type` to test predictions

Signed-off-by: Satish Bethi <satishmsid@gmail.com>

* Add checks for headers when decoding

Signed-off-by: Dan Sun <dsun20@bloomberg.net>

---------

Signed-off-by: Satish Bethi <satishmsid@gmail.com>
Signed-off-by: Dan Sun <dsun20@bloomberg.net>
Co-authored-by: Dan Sun <dsun20@bloomberg.net>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants