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

Serve text files inline #198

Merged
merged 1 commit into from
Jun 20, 2024
Merged

Serve text files inline #198

merged 1 commit into from
Jun 20, 2024

Conversation

tacerus
Copy link
Member

@tacerus tacerus commented Jun 20, 2024

Text-only pastes are preferably viewed in the browser instead of downloaded when using their "raw" links.
To have browsers render such raw files natively instead of saving them (which, depending on the browser and user defined browser preferences, either comes in the form of a download to a pre-defined directory or of a "Save as" dialogue), have the Content-Disposition header option get set to "inline" instead of "attachment" for text/plain content.

@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9600624900

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.972%

Totals Coverage Status
Change from base Build 9570217215: 0.0%
Covered Lines: 265
Relevant Lines: 282

💛 - Coveralls

Text-only pastes are preferably viewed in the browser instead of
downloaded when using their "raw" links.
To have browsers render such raw files natively instead of saving them
(which, depending on the browser and user defined browser preferences,
either comes in the form of a download to a pre-defined directory or of
a "Save as" dialogue), have the Content-Disposition header option get set
to "inline" instead of "attachment" for text/plain content.

Signed-off-by: Georg Pfuetzenreuter <mail@georg-pfuetzenreuter.net>
@hellcp hellcp merged commit 08b2cb8 into openSUSE:main Jun 20, 2024
2 checks passed
@tacerus tacerus deleted the inline branch June 20, 2024 16:06
@coveralls
Copy link

coveralls commented Jun 20, 2024

Pull Request Test Coverage Report for Build 9600734266

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 93.972%

Totals Coverage Status
Change from base Build 9570217215: 0.0%
Covered Lines: 265
Relevant Lines: 282

💛 - Coveralls

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

Successfully merging this pull request may close these issues.

3 participants