Add \r\n in http-response's body #190

Closed
opened 2026-01-19 18:29:21 +00:00 by michael · 2 comments
Owner

Originally created by @alexeyantropov on GitHub.

Please, add a new-line in response. Last versions of apps breaks consoles and my mind.

For example:

aleksey.antropov@aleksey-antropov /tmp $ date > hello.txt
aleksey.antropov@aleksey-antropov /tmp $ curl --upload-file ./hello.txt http://transfer.sh/hello.txt
http://transfer.sh/UxzJg/hello.txtaleksey.antropov@aleksey-antropov /tmp $
aleksey.antropov@aleksey-antropov /tmp $ date > hello1.txt
aleksey.antropov@aleksey-antropov /tmp $ date > hello2.txt
aleksey.antropov@aleksey-antropov /tmp $ date > hello3.txt
aleksey.antropov@aleksey-antropov /tmp $ for i in hello*txt; do curl --upload-file $i http://transfer.sh/$i; done
http://transfer.sh/84gvP/hello.txthttp://transfer.sh/NEmiR/hello1.txthttp://transfer.sh/cLV3N/hello2.txthttp://transfer.sh/TZZPr/hello3.txtaleksey.antropov@aleksey-antropov /tmp $

It would be good, if the answer looks like this:

aleksey.antropov@aleksey-antropov /tmp $ curl --upload-file ./hello.txt http://transfer.sh/hello.txt
http://transfer.sh/UxzJg/hello.txt
aleksey.antropov@aleksey-antropov /tmp $
aleksey.antropov@aleksey-antropov /tmp $ for i in hello*txt; do curl --upload-file $i http://transfer.sh/$i; done
http://transfer.sh/84gvP/hello.txt
http://transfer.sh/NEmiR/hello1.txt
http://transfer.sh/cLV3N/hello2.txt
http://transfer.sh/TZZPr/hello3.txt
Originally created by @alexeyantropov on GitHub. Please, add a new-line in response. Last versions of apps breaks consoles and my mind. For example: ``` aleksey.antropov@aleksey-antropov /tmp $ date > hello.txt aleksey.antropov@aleksey-antropov /tmp $ curl --upload-file ./hello.txt http://transfer.sh/hello.txt http://transfer.sh/UxzJg/hello.txtaleksey.antropov@aleksey-antropov /tmp $ ``` ``` aleksey.antropov@aleksey-antropov /tmp $ date > hello1.txt aleksey.antropov@aleksey-antropov /tmp $ date > hello2.txt aleksey.antropov@aleksey-antropov /tmp $ date > hello3.txt aleksey.antropov@aleksey-antropov /tmp $ for i in hello*txt; do curl --upload-file $i http://transfer.sh/$i; done http://transfer.sh/84gvP/hello.txthttp://transfer.sh/NEmiR/hello1.txthttp://transfer.sh/cLV3N/hello2.txthttp://transfer.sh/TZZPr/hello3.txtaleksey.antropov@aleksey-antropov /tmp $ ``` It would be good, if the answer looks like this: ``` aleksey.antropov@aleksey-antropov /tmp $ curl --upload-file ./hello.txt http://transfer.sh/hello.txt http://transfer.sh/UxzJg/hello.txt aleksey.antropov@aleksey-antropov /tmp $ ``` ``` aleksey.antropov@aleksey-antropov /tmp $ for i in hello*txt; do curl --upload-file $i http://transfer.sh/$i; done http://transfer.sh/84gvP/hello.txt http://transfer.sh/NEmiR/hello1.txt http://transfer.sh/cLV3N/hello2.txt http://transfer.sh/TZZPr/hello3.txt ```
Author
Owner

@paolafrancesca commented on GitHub:

@alexeyantropov you want to use

for i in hello*txt; do curl -s --upload-file $i http://transfer.sh/$i |xargs echo ; done
@paolafrancesca commented on GitHub: @alexeyantropov you want to use ``` for i in hello*txt; do curl -s --upload-file $i http://transfer.sh/$i |xargs echo ; done ```
Author
Owner

@paolafrancesca commented on GitHub:

Last versions of apps breaks consoles and my mind.

@alexeyantropov newline was never present in master, neither in tagged versions. it is the original intended behaviour to be clipboard friendly and I don't want to break it

I'm talking about the code in the repo: I have no control on the what's deployed on https://transfer.sh and I cannot say if any modified codebase was deployed there

@paolafrancesca commented on GitHub: > Last versions of apps breaks consoles and my mind. @alexeyantropov newline was never present in master, neither in tagged versions. it is the original intended behaviour to be clipboard friendly and I don't want to break it I'm talking about the code in the repo: I have no control on the what's deployed on https://transfer.sh and I cannot say if any modified codebase was deployed there
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#190