Actually send file contents when using FHOST_USE_X_ACCEL_REDIRECT #20

Closed
TheStranjer wants to merge 0 commits from master into master
TheStranjer commented 2019-12-19 00:39:03 +01:00 (Migrated from github.com)

When I try to run 0x0 with the default settings, by going python3 fhost.py runserver, and using FHOST_USE_X_ACCEL_REDIRECT in the state of True, it allows me to upload files. However, when I try to curl, those files, it throws errors such as this:

curl: (18) transfer closed with 34767 bytes remaining to read

This is because it isn't actually sending the file contents! The edit to the code I make causes the server to function normally and actually send the file over without issue.

When I try to run 0x0 with the default settings, by going `python3 fhost.py runserver`, and using `FHOST_USE_X_ACCEL_REDIRECT` in the state of `True`, it allows me to upload files. However, when I try to `curl`, those files, it throws errors such as this: ``` curl: (18) transfer closed with 34767 bytes remaining to read ``` This is because it isn't actually sending the file contents! The edit to the code I make causes the server to function normally and actually send the file over without issue.
TheStranjer commented 2019-12-19 00:46:45 +01:00 (Migrated from github.com)

This was made in error. I should have set FHOST_USE_X_ACCEL_REDIRECT to False unless using nginx. My apologies for wasting your time.

This was made in error. I should have set `FHOST_USE_X_ACCEL_REDIRECT` to False unless using nginx. My apologies for wasting your time.

On Mittwoch, 18. Dezember 2019 15:46:46 PST The Stranjer wrote:

This was made in error. I should have set FHOST_USE_X_ACCEL_REDIRECT to
False unless using nginx. My apologies for wasting your time.

No, you should just configure nginx correctly.
https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/

On Mittwoch, 18. Dezember 2019 15:46:46 PST The Stranjer wrote: > This was made in error. I should have set `FHOST_USE_X_ACCEL_REDIRECT` to > False unless using nginx. My apologies for wasting your time. No, you should just configure nginx correctly. https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mia/0x0#20
No description provided.