-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
Bug/decoding uri #3187
Bug/decoding uri #3187
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, there are a few more things...
- If you put "Fixes [std] File server example can not handle url encoded characters #3164" in the description, that issue will be closed automatically when this is merged.
- You've checked in some
.DS_STORE
files. - It is expected that a fix comes with a test demonstrating it, in this case in
std/http/file_server_test.ts
(might need help).
Hey, I updated description remove ds_store. Unfortunately i do not know how to test this :/ Do you have like a crash course on the testing library that you are using? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There still seems to be a //cli/.DS_Store file. Please remove this file.
Currently there is no tutorial on how to do testing. Please look at the files ending in _test.ts to see how tests should look.
So my idea to do this test is: Create file with the space for example "test test.txt", What do you think is this the right approach? |
No need to create and remove the file, just put it into |
Hey I have done the unit test for this change, but since I pulled latest upstream is failing on sccache :/ |
We need to add this in the gitignore |
std/http/file_server_test.ts
Outdated
await startFileServer(); | ||
try { | ||
const res = await fetch( | ||
"http:https://localhost:4500/std/http/testdata/test%20file.txt" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be changed to http:https://localhost:4500/http/testdata/test%20file.txt
@bartlomieju It seems like some conflicts have to be resolved. Can you please do it whenever you have a moment? Cheers |
@AleksandrukTad You forgot to run |
@nayeemrmn git submodule does not do anything if I cd into "third_party" :/. These are my conflicts:
|
That's not what I said to do 😅. Okay try this instead: |
Following may be useful to you:
|
ff48ece
to
3823360
Compare
@nayeemrmn Sorry I must have missundertood then. My git knowledge is pretty basic add/commit/push/pull/rebase. You solution worked thanks! |
@nayeemrmn @zhmushan any idea why this is failing tests only on windows? |
@AleksandrukTad Just push anything to the branch to return the test. @ry the plugin test seems to be flakey. Had the same issue in my last PR. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - thanks - sorry this took so long to merge
Hey its my first pr to open source project, let me know if I have to do some additional stuff.
Was not able to test it with actual files, but now if you go to 0.0.0.0:4500/test test.txt fsPath will be with space not %20.
Fixes #3164