[squeak-dev] The Trunk: WebClient-Core-topa.111.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Sep 20 13:42:06 UTC 2017


Tobias Pape uploaded a new version of WebClient-Core to project The Trunk:
http://source.squeak.org/trunk/WebClient-Core-topa.111.mcz

==================== Summary ====================

Name: WebClient-Core-topa.111
Author: topa
Time: 20 September 2017, 3:41:58.809609 pm
UUID: 63885c9e-d2c6-4c4c-836f-067626dae312
Ancestors: WebClient-Core-topa.110

Don't try to text-decode known non-texts

(This happens.. for example bitbucket sends  'application/zip; charset=utf')

=============== Diff against WebClient-Core-topa.110 ===============

Item was changed:
  ----- Method: WebMessage>>textConverterForContentType (in category 'accessing') -----
  textConverterForContentType
  
  	| index contentType |
  	contentType := self contentType.
  	contentType size < 8 ifTrue: [ ^nil ].
+ 	(contentType beginsWithAnyOf: #('application/' 'image/' 'video/' 'audio/')) ifTrue: [^nil].
  	index := contentType findString: 'charset=' startingAt: 1 caseSensitive: false.
  	index = 0 ifTrue: [ ^nil ].
  	^TextConverter newForEncoding: (contentType allButFirst: index + 7) "'charset=' size - 1"!



More information about the Squeak-dev mailing list