generated from ipfs/ipfs-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix!: add escaped abspath header (#434)
- Loading branch information
Showing
6 changed files
with
141 additions
and
43 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//go:build !go1.20 | ||
|
||
package files | ||
|
||
import "testing" | ||
|
||
func TestAbspathHeaderWithBinaryFilenameSucceeds(t *testing.T) { | ||
// Simulates old client talking to old server (< Go 1.20). | ||
runMultiFileReaderToMultiFileTest(t, true, true, false) | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
//go:build go1.20 | ||
|
||
package files | ||
|
||
import ( | ||
"testing" | ||
) | ||
|
||
func TestAbspathHeaderWithBinaryFilenameFails(t *testing.T) { | ||
// Simulates old client talking to new server (>= Go 1.20). Old client will | ||
// send the binary filename in the regular headers and the new server will error. | ||
runMultiFileReaderToMultiFileTest(t, true, true, true) | ||
} |
This file contains 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
This file contains 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