spesmilo / spesmilo/electrum

Signed payment request view_url returns octet-stream Content-Type

Open
#7,672 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
8.6k
Forks
3.5k
Avg merge
2d 8h
Merged PRs (30d)
61

Description

Navigating to the view_url of payment request returns the following headers

HTTP/1.1 200 OK
Content-Type: application/octet-stream
Etag: "16d49b8fa01a621c-13ad"
Last-Modified: Thu, 17 Feb 2022 15:13:26 GMT
Content-Length: 5037
Accept-Ranges: bytes
Date: Thu, 17 Feb 2022 17:12:01 GMT
Server: Python/3.8 aiohttp/3.8.1

The user agent attempts to download the "page".

It should ideally return something like Content-Type: text/html

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the payment request view_url response handling and inspect where its Content-Type header is selected. Reproduce the request with a browser or HTTP client; done means the response is served as text/html so the user agent renders the page instead of downloading it.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.