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

Cant use new line in the first method #9

Open
crackedpotato007 opened this issue Feb 25, 2021 · 4 comments
Open

Cant use new line in the first method #9

crackedpotato007 opened this issue Feb 25, 2021 · 4 comments

Comments

@crackedpotato007
Copy link

The code can be only one line in the first method

@ariscript
Copy link

ariscript commented May 7, 2021

I can't use newlines in any method GET or POST.

Any request with newlines in the code field just has them be gone, resulting in a LONG one-line string of text.

@cyberboysumanjay
Copy link
Owner

Ideally it should follow the same syntax as url encoding does.
So suppose this is a request for code to be in one line
https://carbonnowsh.herokuapp.com/?code=This%20is%20one%20line

Replacing %20 with %250A should shift it to a new line
https://carbonnowsh.herokuapp.com/?code=This%20is%250Anext%20line

Will try to encode and push changes to the API to handle such scenarios

@ariscript
Copy link

Seems to work with it URI encoded. Didn't think that I had to do that in the case of sending a POST request because JSON can handle any string thrown at it.

@Asliddin750750
Copy link

"This is%0Anext line" in post request
%0A - is \n

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

No branches or pull requests

4 participants