Untitled diff

Created Diff never expires
5 removals
Lines
Total
Removed
Words
Total
Removed
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
34 lines
5 additions
Lines
Total
Added
Words
Total
Added
To continue using this feature, upgrade to
Diffchecker logo
Diffchecker Pro
34 lines
WIRESHARK CAPTURE, THIS WORKED...
WIRESHARK CAPTURE, THIS GAVE "500 INTERNAL SERVER ERROR"...
PATCH /api/v1/solutions/db1793b901b14b6d93c45dcfc2c15ac4 HTTP/1.1
PATCH /api/v1/solutions/db1793b901b14b6d93c45dcfc2c15ac4 HTTP/1.1
Host: lvh.me:3000
Host: lvh.me:3000
Content-Type: multipart/form-data; boundary=Ben-Coman-Constant-Boundary-Zero-Diff-For-Testing-Comparison
Content-Type: multipart/form-data; boundary=Ben-Coman-Constant-Boundary-Zero-Diff-For-Testing-Comparison
Accept: */*
Accept: */*
Content-Length: 273
Content-Length: 271
Accept-Encoding: gzip
Accept-Encoding: gzip
User-Agent: Zinc HTTP Components 1.0 (Pharo/6.0)
User-Agent: Zinc HTTP Components 1.0 (Pharo/6.0)
Authorization: Bearer d264a08c-6bf6-4c3c-93fa-ac3cb3040282
Authorization: Bearer d264a08c-6bf6-4c3c-93fa-ac3cb3040282


--Ben-Coman-Constant-Boundary-Zero-Diff-For-Testing-Comparison
--Ben-Coman-Constant-Boundary-Zero-Diff-For-Testing-Comparison
Content-Type: application/octet-stream
Content-Type: application/octet-stream
Content-Length: 13
Content-Length: 13
Content-Disposition: form-data; name="files[]"; filename="x.txt"
Content-Disposition: form-data;name="files[]";filename="x.txt"


MY SOLUTION
MY SOLUTION
--Ben-Coman-Constant-Boundary-Zero-Diff-For-Testing-Comparison--
--Ben-Coman-Constant-Boundary-Zero-Diff-For-Testing-Comparison--




======================================
======================================
MODIFIED LIBRARY CODE...
ORIGINAL LIBRARY CODE...
ZnMimePart class >> fieldName: fieldName fileName: fileName entity: entity
ZnMimePart class >> fieldName: fieldName fileName: fileName entity: entity
"Pathnames are often silenty encoded using UTF-8,
"Pathnames are often silenty encoded using UTF-8,
this is a no-op for ASCII, but will fail on Latin-1 and others"
this is a no-op for ASCII, but will fail on Latin-1 and others"


| encodedFileName |
| encodedFileName |
encodedFileName := fileName utf8Encoded asString.
encodedFileName := fileName utf8Encoded asString.
^ self new
^ self new
setContentDisposition: 'form-data; name="', fieldName, '"; filename="', encodedFileName, '"';
setContentDisposition: 'form-data;name="', fieldName, '";filename="', encodedFileName, '"';
entity: entity;
entity: entity;
yourself
yourself