Repository navigation
fix(gui): Resenderでリクエストを全選択コピーして貼り直すと改行が変わる不具合を直す - #252
Merged
Merged
Conversation
toku-sa-n
force-pushed
the
fix/resender-raw-copy-paste
branch
4 times, most recently
from
July 7, 2026 05:50
0875007 to
fbf4b39
Compare
toku-sa-n
force-pushed
the
fix/resender-raw-copy-paste
branch
from
July 10, 2026 11:36
fbf4b39 to
cb709ca
Compare
toku-sa-n
force-pushed
the
fix/resender-raw-copy-paste
branch
from
November 19, 2026 05:33
cb709ca to
26a7722
Compare
…quest Copying a whole request in Resender, deleting it and pasting it back sent a different request. Two steps changed the bytes: copy() always stripped trailing newlines, which drops the blank line that ends the headers, and RSyntaxTextArea's RTATextTransferHandler turns every CRLF and CR into LF on paste, which suits text files but not raw packets. Keep trailing newlines when the whole document is selected, and strip them only for a partial selection, which is the case DeNA#217 was about (pasting a line into another proxy tool). Install a transfer handler that inserts the pasted text as is, keeping one atomic undo edit. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
toku-sa-n
force-pushed
the
fix/resender-raw-copy-paste
branch
from
November 20, 2026 02:11
26a7722 to
c5f17e5
Compare
toku-sa-n
marked this pull request as ready for review
November 20, 2026 05:08
Contributor
|
ありがとうございます! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resenderでリクエストを全選択してコピーし、削除してから貼り付け直して送ると、元とは異なる正しくないリクエストが送信される不具合を修正します。
原因は2つありました。
全選択してコピーしたときも末尾の改行を除いていたため、ヘッダーの終わりを示す空行が消えていました(fix(gui): strip trailing CRLF on copy from RawTextPane #217)。文書全体を選択したときは改行を残し、一部を選択したときだけ除くようにしました。
RSyntaxTextAreaの既定の貼り付け処理が、CRLFとCRをLFに変換していました。改行を変えずに挿入するTransferHandlerをRawTextPaneに設定しました。
By placing an "x" in the box, I hereby understand, accept and agree to be bound by the terms and conditions of the Contribution License Agreement.