Commit 94da597
committed
cmd/submit_test.go: Update test server to use unmodified filename
Following RFC 7578, Go 1.17+ strips the directory information in fileHeader.Filename.
This change updates the test server to use Header["Content-Disposition"] for obtaining the unmodified filename
for validating the submitted files directory tree in the request.
This work builds on the PR opened by @QuLogic exercism#10661 parent ecd826d commit 94da597
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
561 | 562 | | |
562 | 563 | | |
563 | 564 | | |
564 | | - | |
| 565 | + | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
565 | 575 | | |
566 | 576 | | |
567 | 577 | | |
| |||
0 commit comments